[Initscripts-ng-commits] r274 - /trunk/src/insserv/debian/patches/38_debuginfo.dpatch

pere at users.alioth.debian.org pere at users.alioth.debian.org
Sat Nov 17 18:05:32 UTC 2007


Author: pere
Date: Sat Nov 17 18:05:32 2007
New Revision: 274

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=274
Log:
Include both number and string representation in debug output.

Modified:
    trunk/src/insserv/debian/patches/38_debuginfo.dpatch

Modified: trunk/src/insserv/debian/patches/38_debuginfo.dpatch
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/patches/38_debuginfo.dpatch?rev=274&op=diff
==============================================================================
--- trunk/src/insserv/debian/patches/38_debuginfo.dpatch (original)
+++ trunk/src/insserv/debian/patches/38_debuginfo.dpatch Sat Nov 17 18:05:32 2007
@@ -1,7 +1,7 @@
 #! /bin/sh /usr/share/dpatch/dpatch-run
 ## 38_debuginfo.dpatch by Petter Reinholdtsen <pere at hungry.com>
 
-Change debug output to print symbolic runlevel names instead of a hex
+Change debug output to print symbolic runlevel names as wellas a hex
 value with the bit pattern representing the runlevels.
 
 @DPATCH@
@@ -13,13 +13,13 @@
  	if (dir->script)
 -	    fprintf(stderr, "%.2d %s 0x%.2x (%s)\n",
 -		   dir->order, dir->script, dir->lvl, dir->name);
-+	    fprintf(stderr, "%.2d %s '%s' (%s)\n",
-+		   dir->order, dir->script, lvl2str(dir->lvl), dir->name);
++	    fprintf(stderr, "%.2d %s 0x%.2x '%s' (%s)\n",
++		   dir->order, dir->script, dir->lvl, lvl2str(dir->lvl), dir->name);
  	else
 -	    fprintf(stderr, "%.2d %s 0x%.2x (%%%s)\n",
 -		   dir->order, dir->name, dir->lvl, *dir->name == '$' ? "system" : "guessed");
-+	    fprintf(stderr, "%.2d %s '%s' (%%%s)\n",
-+		   dir->order, dir->name, lvl2str(dir->lvl), *dir->name == '$' ? "system" : "guessed");
++	    fprintf(stderr, "%.2d %s 0x%.2x '%s' (%%%s)\n",
++		   dir->order, dir->name, dir->lvl, lvl2str(dir->lvl), *dir->name == '$' ? "system" : "guessed");
      }
  }
  #endif




More information about the Initscripts-ng-commits mailing list