summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2022-12-29 14:49:39 +0106
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-10 09:40:09 +0100
commitd0d794371bde0af25cf26f643dda0a344b786928 (patch)
tree8fe3d2f87f19cda7913342eb306adb934b2bd062 /Documentation
parenta16bd95eeb2e162374592bba3c8fe250bb824051 (diff)
downloadlinux-d0d794371bde0af25cf26f643dda0a344b786928.tar.gz
linux-d0d794371bde0af25cf26f643dda0a344b786928.tar.bz2
linux-d0d794371bde0af25cf26f643dda0a344b786928.zip
docs: gdbmacros: print newest record
commit f2e4cca2f670c8e52fbb551a295f2afc9aa2bd72 upstream. @head_id points to the newest record, but the printing loop exits when it increments to this value (before printing). Exit the printing loop after the newest record has been printed. The python-based function in scripts/gdb/linux/dmesg.py already does this correctly. Fixes: e60768311af8 ("scripts/gdb: update for lockless printk ringbuffer") Cc: stable@vger.kernel.org Signed-off-by: John Ogness <john.ogness@linutronix.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20221229134339.197627-1-john.ogness@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/admin-guide/kdump/gdbmacros.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/admin-guide/kdump/gdbmacros.txt b/Documentation/admin-guide/kdump/gdbmacros.txt
index 82aecdcae8a6..030de95e3e6b 100644
--- a/Documentation/admin-guide/kdump/gdbmacros.txt
+++ b/Documentation/admin-guide/kdump/gdbmacros.txt
@@ -312,10 +312,10 @@ define dmesg
set var $prev_flags = $info->flags
end
- set var $id = ($id + 1) & $id_mask
if ($id == $end_id)
loop_break
end
+ set var $id = ($id + 1) & $id_mask
end
end
document dmesg