rpms/e2tools/F-8 e2tools-printf-lld-64bit.patch, 1.3, 1.4 e2tools.spec, 1.6, 1.7
Hans Ulrich Niedermann (ndim)
fedora-extras-commits at redhat.com
Sun Dec 9 02:29:31 UTC 2007
- Previous message (by thread): rpms/kernel/devel patch-2.6.24-rc4-git6.bz2.sign, NONE, 1.1 .cvsignore, 1.731, 1.732 kernel.spec, 1.288, 1.289 linux-2.6-utrace-core.patch, 1.11, 1.12 linux-2.6-utrace-ptrace-compat-avr32.patch, 1.4, 1.5 linux-2.6-utrace-ptrace-compat.patch, 1.10, 1.11 linux-2.6-utrace-regset-avr32.patch, 1.3, 1.4 linux-2.6-utrace-tracehook-avr32.patch, 1.3, 1.4 linux-2.6-utrace-tracehook-s390.patch, 1.3, 1.4 linux-2.6-utrace-tracehook.patch, 1.18, 1.19 sources, 1.691, 1.692 upstream, 1.613, 1.614 patch-2.6.24-rc4-git5.bz2.sign, 1.1, NONE
- Next message (by thread): rpms/e2tools/devel e2tools-printf-lld-64bit.patch, 1.1, 1.2 e2tools.spec, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: ndim
Update of /cvs/pkgs/rpms/e2tools/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26368
Modified Files:
e2tools-printf-lld-64bit.patch e2tools.spec
Log Message:
* Sun Dec 9 2007 Hans Ulrich Niedermann <hun at n-dimensional.de> - 0.0.16-9
- Use format string macro from inttypes.h and uint64_t (#349851).
e2tools-printf-lld-64bit.patch:
Index: e2tools-printf-lld-64bit.patch
===================================================================
RCS file: /cvs/pkgs/rpms/e2tools/F-8/e2tools-printf-lld-64bit.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- e2tools-printf-lld-64bit.patch 9 Dec 2007 00:38:02 -0000 1.3
+++ e2tools-printf-lld-64bit.patch 9 Dec 2007 02:29:22 -0000 1.4
@@ -1,31 +1,29 @@
+Caution: Checking __WORDSIZE == 64 is not enough.
+
+ On x86_64, << printf("%7" PRIu64, (__u64)1); >> lets gcc throw a warning.
+ __u64 seems to be a long int; uint64_t a long long int; PRIu64 "llu".
+ So __u64 is not compatible with PRIu64, even though it is a 64bit value.
+
diff -ru e2tools-0.0.16-orig/ls.c e2tools-0.0.16-lld/ls.c
--- e2tools-0.0.16-orig/ls.c 2007-12-08 23:57:40.000000000 +0100
-+++ e2tools-0.0.16-lld/ls.c 2007-12-09 01:32:12.000000000 +0100
-@@ -44,6 +44,7 @@
++++ e2tools-0.0.16-lld/ls.c 2007-12-09 03:10:24.000000000 +0100
+@@ -44,6 +44,8 @@
#include "e2tools.h"
#include "elist.h"
#include <regex.h>
++#include <stdint.h>
+#include <inttypes.h>
/*
* list directory
-@@ -657,8 +658,17 @@
+@@ -657,8 +659,8 @@
if (LINUX_S_ISDIR(info->inode.i_mode))
printf("%7d", info->inode.i_size);
else
- printf("%7lld", info->inode.i_size |
- ((__u64)info->inode.i_size_high << 32));
-+ printf(PRIu64, (__u64)(info->inode.i_size |
-+ ((__u64)info->inode.i_size_high << 32)));
-+#if 0
-+#if ULONG_MAX == 4294967295UL
-+ printf("%7llu", (__u64)(info->inode.i_size |
-+ ((__u64)info->inode.i_size_high << 32)));
-+#else
-+ printf("%7lu", (__u64)(info->inode.i_size |
-+ ((__u64)info->inode.i_size_high << 32)));
-+#endif
-+#endif
++ printf("%7" PRIu64, (uint64_t)(info->inode.i_size |
++ ((__u64)info->inode.i_size_high << 32)));
printf(" %s %s\n", datestr, info->name);
} /* end of long_disp */
Index: e2tools.spec
===================================================================
RCS file: /cvs/pkgs/rpms/e2tools/F-8/e2tools.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- e2tools.spec 9 Dec 2007 00:38:02 -0000 1.6
+++ e2tools.spec 9 Dec 2007 02:29:22 -0000 1.7
@@ -1,6 +1,6 @@
Name: e2tools
Version: 0.0.16
-Release: 8%{?dist}.3
+Release: 9%{?dist}
Summary: Manipulate files in unmounted ext2/ext3 filesystems
Group: Applications/System
@@ -100,8 +100,8 @@
%changelog
-* Sat Dec 8 2007 Hans Ulrich Niedermann <hun at n-dimensional.de> - 0.0.16-8.fc8.3
-- Improving __u64 formatstring magic: Use macro from inttypes.h.
+* Sun Dec 9 2007 Hans Ulrich Niedermann <hun at n-dimensional.de> - 0.0.16-9
+- Use format string macro from inttypes.h and uint64_t (#349851).
* Sat Dec 8 2007 Hans Ulrich Niedermann <hun at n-dimensional.de> - 0.0.16-8
- Special __u64 formatstring on 64bit platforms (#349851).
- Previous message (by thread): rpms/kernel/devel patch-2.6.24-rc4-git6.bz2.sign, NONE, 1.1 .cvsignore, 1.731, 1.732 kernel.spec, 1.288, 1.289 linux-2.6-utrace-core.patch, 1.11, 1.12 linux-2.6-utrace-ptrace-compat-avr32.patch, 1.4, 1.5 linux-2.6-utrace-ptrace-compat.patch, 1.10, 1.11 linux-2.6-utrace-regset-avr32.patch, 1.3, 1.4 linux-2.6-utrace-tracehook-avr32.patch, 1.3, 1.4 linux-2.6-utrace-tracehook-s390.patch, 1.3, 1.4 linux-2.6-utrace-tracehook.patch, 1.18, 1.19 sources, 1.691, 1.692 upstream, 1.613, 1.614 patch-2.6.24-rc4-git5.bz2.sign, 1.1, NONE
- Next message (by thread): rpms/e2tools/devel e2tools-printf-lld-64bit.patch, 1.1, 1.2 e2tools.spec, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list