From 587d1dced80604650e138fc1002318e7895abb78 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 11 Feb 2008 00:31:22 +0000 Subject: [PATCH] Print contents of unsigned fields with %lu, not %d, to fix Debian bug #342334; however, for this bug to have shown up in the first place, the numbers involved must have been enormous (with MS bit set), so another bug is likely somewhere in the magic, the softmagic code, or the file being checked may have been corrupt. --- magic/Magdir/filesystems | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/magic/Magdir/filesystems b/magic/Magdir/filesystems index d78b52d5..da7d481f 100644 --- a/magic/Magdir/filesystems +++ b/magic/Magdir/filesystems @@ -1133,24 +1133,24 @@ # cramfs filesystem - russell@coker.com.au 0 lelong 0x28cd3d45 Linux Compressed ROM File System data, little endian ->4 lelong x size %d +>4 lelong x size %lu >8 lelong &1 version #2 >8 lelong &2 sorted_dirs >8 lelong &4 hole_support >32 lelong x CRC 0x%x, ->36 lelong x edition %d, ->40 lelong x %d blocks, ->44 lelong x %d files +>36 lelong x edition %lu, +>40 lelong x %lu blocks, +>44 lelong x %lu files 0 belong 0x28cd3d45 Linux Compressed ROM File System data, big endian ->4 belong x size %d +>4 belong x size %lu >8 belong &1 version #2 >8 belong &2 sorted_dirs >8 belong &4 hole_support >32 belong x CRC 0x%x, ->36 belong x edition %d, ->40 belong x %d blocks, ->44 belong x %d files +>36 belong x edition %lu, +>40 belong x %lu blocks, +>44 belong x %lu files # reiserfs - russell@coker.com.au 0x10034 string ReIsErFs ReiserFS V3.5 -- 2.40.0