SOURCES: dvd+rw-tools-printf.patch (NEW) - portable printf format ...
pluto
pluto at pld-linux.org
Fri Apr 7 09:55:28 CEST 2006
Author: pluto Date: Fri Apr 7 07:55:28 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- portable printf format coding.
---- Files affected:
SOURCES:
dvd+rw-tools-printf.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/dvd+rw-tools-printf.patch
diff -u /dev/null SOURCES/dvd+rw-tools-printf.patch:1.1
--- /dev/null Fri Apr 7 09:55:28 2006
+++ SOURCES/dvd+rw-tools-printf.patch Fri Apr 7 09:55:23 2006
@@ -0,0 +1,28 @@
+--- dvd+rw-tools-6.1/growisofs.c.orig 2006-04-07 09:42:51.000000000 +0200
++++ dvd+rw-tools-6.1/growisofs.c 2006-04-07 09:50:33.000000000 +0200
+@@ -456,8 +456,12 @@
+ #endif
+
+ #ifndef LLD
++#if defined(_LP64) || defined(__LP64__)
++#define LLD "ld"
++#else
+ #define LLD "lld"
+ #endif
++#endif
+
+ #ifndef DEFAULT_BUF_SIZE_MB
+ /* (!) default is 32MB, which is somewhat wasteful for 4x recording
+@@ -2901,10 +2905,10 @@
+
+ if (dev_found == 'F') {
+ off64_t capacity = 0;
+- printf("next_session=%lld\n", next_session*CD_BLOCK);
++ printf("next_session=%"LLD"\n", next_session*CD_BLOCK);
+ if (ioctl_handle!=INVALID_HANDLE)
+ capacity = get_capacity (ioctl_handle);
+- printf("capacity=%lld\n", capacity);
++ printf("capacity=%"LLD"\n", capacity);
+ exit(0);
+ }
+
================================================================
More information about the pld-cvs-commit
mailing list