Commit 047896a3 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel: use KERN_CONT for continuation printk calls

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent b45b0171
...@@ -29,7 +29,7 @@ static const uint8_t *dump_line(int addr, const uint8_t *line, ...@@ -29,7 +29,7 @@ static const uint8_t *dump_line(int addr, const uint8_t *line,
if (!prev || memcmp(line, prev, LINELEN)) { if (!prev || memcmp(line, prev, LINELEN)) {
pr_info("%04x: ", addr); pr_info("%04x: ", addr);
for (i = 0; i < LINELEN; ) { for (i = 0; i < LINELEN; ) {
printk("%02x", line[i]); printk(KERN_CONT "%02x", line[i]);
i++; i++;
printk(i & 3 ? " " : i & (LINELEN - 1) ? " " : "\n"); printk(i & 3 ? " " : i & (LINELEN - 1) ? " " : "\n");
} }
......
...@@ -169,16 +169,16 @@ static void __fmc_show_sdb_tree(const struct fmc_device *fmc, ...@@ -169,16 +169,16 @@ static void __fmc_show_sdb_tree(const struct fmc_device *fmc,
dev_info(&fmc->dev, "SDB: "); dev_info(&fmc->dev, "SDB: ");
for (j = 0; j < level; j++) for (j = 0; j < level; j++)
printk(" "); printk(KERN_CONT " ");
switch (r->empty.record_type) { switch (r->empty.record_type) {
case sdb_type_interconnect: case sdb_type_interconnect:
printk("%08llx:%08x %.19s\n", printk(KERN_CONT "%08llx:%08x %.19s\n",
__be64_to_cpu(p->vendor_id), __be64_to_cpu(p->vendor_id),
__be32_to_cpu(p->device_id), __be32_to_cpu(p->device_id),
p->name); p->name);
break; break;
case sdb_type_device: case sdb_type_device:
printk("%08llx:%08x %.19s (%08llx-%08llx)\n", printk(KERN_CONT "%08llx:%08x %.19s (%08llx-%08llx)\n",
__be64_to_cpu(p->vendor_id), __be64_to_cpu(p->vendor_id),
__be32_to_cpu(p->device_id), __be32_to_cpu(p->device_id),
p->name, p->name,
...@@ -186,32 +186,33 @@ static void __fmc_show_sdb_tree(const struct fmc_device *fmc, ...@@ -186,32 +186,33 @@ static void __fmc_show_sdb_tree(const struct fmc_device *fmc,
__be64_to_cpu(c->addr_last) + base); __be64_to_cpu(c->addr_last) + base);
break; break;
case sdb_type_bridge: case sdb_type_bridge:
printk("%08llx:%08x %.19s (bridge: %08llx)\n", printk(KERN_CONT "%08llx:%08x %.19s (bridge: %08llx)\n",
__be64_to_cpu(p->vendor_id), __be64_to_cpu(p->vendor_id),
__be32_to_cpu(p->device_id), __be32_to_cpu(p->device_id),
p->name, p->name,
__be64_to_cpu(c->addr_first) + base); __be64_to_cpu(c->addr_first) + base);
if (IS_ERR(arr->subtree[i])) { if (IS_ERR(arr->subtree[i])) {
printk("(bridge error %li)\n", printk(KERN_CONT "(bridge error %li)\n",
PTR_ERR(arr->subtree[i])); PTR_ERR(arr->subtree[i]));
break; break;
} }
__fmc_show_sdb_tree(fmc, arr->subtree[i]); __fmc_show_sdb_tree(fmc, arr->subtree[i]);
break; break;
case sdb_type_integration: case sdb_type_integration:
printk("integration\n"); printk(KERN_CONT "integration\n");
break; break;
case sdb_type_repo_url: case sdb_type_repo_url:
printk("repo-url\n"); printk(KERN_CONT "repo-url\n");
break; break;
case sdb_type_synthesis: case sdb_type_synthesis:
printk("synthesis-info\n"); printk(KERN_CONT "synthesis-info\n");
break; break;
case sdb_type_empty: case sdb_type_empty:
printk("empty\n"); printk(KERN_CONT "empty\n");
break; break;
default: default:
printk("UNKNOWN TYPE 0x%02x\n", r->empty.record_type); printk(KERN_CONT "UNKNOWN TYPE 0x%02x\n",
r->empty.record_type);
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment