sbin/hammer - Change verbose level for showing data records. master
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 2 Mar 2015 16:03:31 +0000 (17:03 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 2 Mar 2015 16:24:28 +0000 (17:24 +0100)
- Also fix missing braces.

Suggested-by: tkusumi
sbin/hammer/cmd_show.c

index e2fda8e..5688810 100644 (file)
@@ -579,11 +579,17 @@ print_record(hammer_btree_elm_t elm)
                }
                break;
        case HAMMER_RECTYPE_DATA:
+               if (VerboseOpt > 3) {
+                       printf("\n");
+                       hexdump(data, data_len, "\t\t  ", 0);
+               }
+               break;
        case HAMMER_RECTYPE_EXT:
        case HAMMER_RECTYPE_DB:
-               if (VerboseOpt > 2)
+               if (VerboseOpt > 2) {
                        printf("\n");
                        hexdump(data, data_len, "\t\t  ", 0);
+               }
                break;
        default:
                break;