From d322203c4af88bba3041d46e0810ad9b8688f19a Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Thu, 18 Jun 2009 09:35:14 +0000 Subject: [PATCH] Fix dump output message when using default level. --- CHANGES | 6 +++++- dump/main.c | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index c7adb0b..f75d16c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.295 2008/09/04 19:21:07 stelian Exp $ +$Id: CHANGES,v 1.296 2009/06/18 09:35:14 stelian Exp $ Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx) ===================================================================== @@ -55,6 +55,10 @@ Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx) actually based on the Tower of Hanoi algorithm. The man page was updated accordingly. +13. Fix missing level information from dump output when using + the default level (RedHat bug #493635). Thanks to Adam Tkac + for the patch. + Changes between versions 0.4b40 and 0.4b41 (released January 2, 2006) ===================================================================== diff --git a/dump/main.c b/dump/main.c index b73a788..b3bbf7d 100644 --- a/dump/main.c +++ b/dump/main.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.94 2004/07/05 15:12:45 stelian Exp $"; + "$Id: main.c,v 1.95 2009/06/18 09:35:14 stelian Exp $"; #endif /* not lint */ #include @@ -239,6 +239,8 @@ main(int argc, char *argv[]) quit("TP_BSIZE must be a multiple of DEV_BSIZE\n"); memset(&lastlevel, 0, NUM_STR_SIZE); memset(&level, 0, NUM_STR_SIZE); + /* Default dump level is zero. */ + level[0] = '0'; if (argc < 2) usage(); -- 2.39.5