]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Correct a print format of test failure log for file times. its type is `long long...
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 30 Mar 2011 12:55:58 +0000 (08:55 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 30 Mar 2011 12:55:58 +0000 (08:55 -0400)
SVN-Revision: 3128

cpio/test/main.c
libarchive/test/main.c
tar/test/main.c

index 9a658da18537140273eebec892772729667ad011..c0166f6929840836aace674afdfe7319ca3d5e11 100644 (file)
@@ -1086,14 +1086,14 @@ assertion_file_time(const char *file, int line,
                time_t now = time(NULL);
                if (filet < now - 10 || filet > now + 1) {
                        failure_start(file, line,
-                           "File %s has %ctime %ld, %ld seconds ago\n",
+                           "File %s has %ctime %lld, %lld seconds ago\n",
                            pathname, type, filet, now - filet);
                        failure_finish(NULL);
                        return (0);
                }
        } else if (filet != t || filet_nsec != nsec) {
                failure_start(file, line,
-                   "File %s has %ctime %ld.%09ld, expected %ld.%09ld",
+                   "File %s has %ctime %lld.%09lld, expected %lld.%09lld",
                    pathname, type, filet, filet_nsec, t, nsec);
                failure_finish(NULL);
                return (0);
index 7ed047c17645fdde069a975fa78710a19324ff5f..4cc8f4f81403ed36910babadf8ba93e2e4ab07d8 100644 (file)
@@ -1100,14 +1100,14 @@ assertion_file_time(const char *file, int line,
                time_t now = time(NULL);
                if (filet < now - 10 || filet > now + 1) {
                        failure_start(file, line,
-                           "File %s has %ctime %ld, %ld seconds ago\n",
+                           "File %s has %ctime %lld, %lld seconds ago\n",
                            pathname, type, filet, now - filet);
                        failure_finish(NULL);
                        return (0);
                }
        } else if (filet != t || filet_nsec != nsec) {
                failure_start(file, line,
-                   "File %s has %ctime %ld.%09ld, expected %ld.%09ld",
+                   "File %s has %ctime %lld.%09lld, expected %lld.%09lld",
                    pathname, type, filet, filet_nsec, t, nsec);
                failure_finish(NULL);
                return (0);
index fc8449c6241911e3a685a8bdeb7a34f2f1bc9f3e..ea8cff2b9caf9775b191d7c637e712eb7e1a29f4 100644 (file)
@@ -1086,14 +1086,14 @@ assertion_file_time(const char *file, int line,
                time_t now = time(NULL);
                if (filet < now - 10 || filet > now + 1) {
                        failure_start(file, line,
-                           "File %s has %ctime %ld, %ld seconds ago\n",
+                           "File %s has %ctime %lld, %lld seconds ago\n",
                            pathname, type, filet, now - filet);
                        failure_finish(NULL);
                        return (0);
                }
        } else if (filet != t || filet_nsec != nsec) {
                failure_start(file, line,
-                   "File %s has %ctime %ld.%09ld, expected %ld.%09ld",
+                   "File %s has %ctime %lld.%09lld, expected %lld.%09lld",
                    pathname, type, filet, filet_nsec, t, nsec);
                failure_finish(NULL);
                return (0);