| 
      
      
      From: <mil...@us...> - 2007-12-07 15:26:56
      
     | 
| Revision: 2695
          http://selinux.svn.sourceforge.net/selinux/?rev=2695&view=rev
Author:   millertc
Date:     2007-12-07 07:26:49 -0800 (Fri, 07 Dec 2007)
Log Message:
-----------
Print the module magic number in hex, not decimal if there is a mismatch.
This is consistent with how the policydb magic number is printed and
matches the format of the magic number #defines.
Signed-off-by: Todd C. Miller <tm...@tr...>
Acked-by:  Stephen Smalley <sd...@ty...>
Modified Paths:
--------------
    trunk/libsepol/src/module.c
Modified: trunk/libsepol/src/module.c
===================================================================
--- trunk/libsepol/src/module.c	2007-12-05 17:44:23 UTC (rev 2694)
+++ trunk/libsepol/src/module.c	2007-12-07 15:26:49 UTC (rev 2695)
@@ -371,7 +371,7 @@
 	}
 	if (le32_to_cpu(buf[0]) != SEPOL_MODULE_PACKAGE_MAGIC) {
 		ERR(file->handle,
-		    "wrong magic number for module package:  expected %u, got %u",
+		    "wrong magic number for module package:  expected %#08x, got %#08x",
 		    SEPOL_MODULE_PACKAGE_MAGIC, le32_to_cpu(buf[0]));
 		goto err;
 	}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |