|
@@ -161,6 +161,7 @@ static void pstore_console_write(struct console *con, const char *s, unsigned c)
|
|
|
|
|
|
while (s < e) {
|
|
|
unsigned long flags;
|
|
|
+ u64 id;
|
|
|
|
|
|
if (c > psinfo->bufsize)
|
|
|
c = psinfo->bufsize;
|
|
@@ -172,7 +173,7 @@ static void pstore_console_write(struct console *con, const char *s, unsigned c)
|
|
|
spin_lock_irqsave(&psinfo->buf_lock, flags);
|
|
|
}
|
|
|
memcpy(psinfo->buf, s, c);
|
|
|
- psinfo->write(PSTORE_TYPE_CONSOLE, 0, NULL, 0, c, psinfo);
|
|
|
+ psinfo->write(PSTORE_TYPE_CONSOLE, 0, &id, 0, c, psinfo);
|
|
|
spin_unlock_irqrestore(&psinfo->buf_lock, flags);
|
|
|
s += c;
|
|
|
c = e - s;
|