From b157444ae6282bb208e902ac9ef1a5b5f30c0582 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 12 Nov 2016 18:48:50 +0900 Subject: [PATCH] sbin/hammer: sbin/hammer: Fix hammer show-undo output format Add some ondisk redo fields. --- sbin/hammer/cmd_show.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sbin/hammer/cmd_show.c b/sbin/hammer/cmd_show.c index 7f21c0f5fe..f8ee8423c1 100644 --- a/sbin/hammer/cmd_show.c +++ b/sbin/hammer/cmd_show.c @@ -1021,19 +1021,20 @@ hammer_cmd_show_undo(void) hdr->hdr_size, hdr->hdr_seq); break; case HAMMER_HEAD_TYPE_UNDO: - printf("UNDO(%d)\tseq=%08x dataoff=%016jx bytes=%d", + printf("UNDO(%d)\tseq=%08x offset=%016jx bytes=%d", hdr->hdr_size, hdr->hdr_seq, (intmax_t)head->undo.undo_offset, head->undo.undo_data_bytes); break; case HAMMER_HEAD_TYPE_REDO: - printf("REDO(%d)\tseq=%08x flags=%08x " - "objid=%016jx logoff=%016jx bytes=%d", + printf("REDO(%d)\tseq=%08x offset=%016jx bytes=%d " + "objid=%016jx flags=%08x lo=%08x", hdr->hdr_size, hdr->hdr_seq, - head->redo.redo_flags, - (intmax_t)head->redo.redo_objid, (intmax_t)head->redo.redo_offset, - head->redo.redo_data_bytes); + head->redo.redo_data_bytes, + (intmax_t)head->redo.redo_objid, + head->redo.redo_flags, + head->redo.redo_localization); break; default: printf("%04x(%d)\tseq=%08x", -- 2.11.4.GIT