From: Darrick J. Wong Date: Tue, 25 Oct 2016 22:14:32 +0000 (-0700) Subject: xfs_db: print one array element per line X-Git-Tag: v4.9.0-rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=384283555871d120efd4cff9431feef6958d49b1;p=thirdparty%2Fxfsprogs-dev.git xfs_db: print one array element per line Print one array element per line so that the debugger output isn't a gigantic pile of screen snow. Before (inobt): xfs_db> p recs recs[1-55] = [startino,holemask,count,freecount,free] 1:[128,0,64,0,0] 2:[4288,0xff,32,0,0xffffffff] 3:[4352,0,64,0,0] 4:[4416,0,64,10,0x1f0003e000000000] 5:[4480,0,64,17,0xc00e1803c2007840] After: xfs_db> p recs recs[1-55] = [startino,holemask,count,freecount,free] 1:[128,0,64,0,0] 2:[4288,0xff,32,0,0xffffffff] 3:[4352,0,64,0,0] 4:[4416,0,64,10,0x1f0003e000000000] 5:[4480,0,64,17,0xc00e1803c2007840] Signed-off-by: Darrick J. Wong --- diff --git a/db/print.c b/db/print.c index 998daf45d..e31372ff6 100644 --- a/db/print.c +++ b/db/print.c @@ -197,7 +197,7 @@ print_sarray( i < count && !seenint(); i++, bitoff += size) { if (array) - dbprintf("%d:", i + base); + dbprintf("\n%d:", i + base); for (f = flds, first = 1; f->name; f++) { if (f->flags & FLD_SKIPALL) continue;