Skip to content

Commit 5da527a

Browse files
kaysieversgregkh
authored andcommitted
printk(): add KERN_CONT where needed in hpet and vt code
A prototype for kmsg records instead of a byte-stream buffer revealed a couple of missing printk(KERN_CONT ...) uses. Subsequent calls produce one record per printk() call, while all should have ended up in a single record. Instead of: ACPI: (supports S0 S5) ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11) hpet0: at MMIO 0xfed00000, IRQs 2 , 8 , 0 It prints: ACPI: (supports S0 S5 ) ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11 ) hpet0: at MMIO 0xfed00000, IRQs 2 , 8 , 0 Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Len Brown <lenb@kernel.org> Signed-off-by: Kay Sievers <kay@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 57c3686 commit 5da527a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎drivers/char/hpet.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,8 @@ int hpet_alloc(struct hpet_data *hdp)
906906
hpetp->hp_which, hdp->hd_phys_address,
907907
hpetp->hp_ntimer > 1 ? "s" : "");
908908
for (i = 0; i < hpetp->hp_ntimer; i++)
909-
printk("%s %d", i > 0 ? "," : "", hdp->hd_irq[i]);
910-
printk("\n");
909+
printk(KERN_CONT "%s %d", i > 0 ? "," : "", hdp->hd_irq[i]);
910+
printk(KERN_CONT "\n");
911911

912912
temp = hpetp->hp_tick_freq;
913913
remainder = do_div(temp, 1000000);

‎drivers/tty/vt/vt.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,11 +2932,10 @@ static int __init con_init(void)
29322932
gotoxy(vc, vc->vc_x, vc->vc_y);
29332933
csi_J(vc, 0);
29342934
update_screen(vc);
2935-
pr_info("Console: %s %s %dx%d",
2935+
pr_info("Console: %s %s %dx%d\n",
29362936
vc->vc_can_do_color ? "colour" : "mono",
29372937
display_desc, vc->vc_cols, vc->vc_rows);
29382938
printable = 1;
2939-
printk("\n");
29402939

29412940
console_unlock();
29422941

0 commit comments

Comments
 (0)