[PATCH] kdb dmesg output broken after log_buf changes
Olaf Hering
olh at suse.de
Thu Jan 29 07:21:37 EST 2004
This change should fix then dmesg command.
diff -p -purN linuxppc64-2.5/kernel/printk.c linuxppc64-2.5.kdb/kernel/printk.c
--- linuxppc64-2.5/kernel/printk.c 2004-01-20 03:08:38.000000000 +0100
+++ linuxppc64-2.5.kdb/kernel/printk.c 2004-01-28 21:19:28.000000000 +0100
@@ -366,7 +366,7 @@ out:
void kdb_syslog_data(char *syslog_data[4])
{
syslog_data[0] = log_buf;
- syslog_data[1] = log_buf + sizeof(log_buf);
+ syslog_data[1] = log_buf + __LOG_BUF_LEN;
syslog_data[2] = log_buf + log_end - (logged_chars < __LOG_BUF_LEN ? logged_chars : __LOG_BUF_LEN);
syslog_data[3] = log_buf + log_end;
}
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list