From: Dmitry V. Levin Date: Thu, 21 Apr 2016 21:32:28 +0000 (+0000) Subject: tests/unlinkat.c: print syscall() result using %ld format X-Git-Tag: v4.12~311 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d8c2351105daee846036225f5446aa451a5c29e;p=strace tests/unlinkat.c: print syscall() result using %ld format --- diff --git a/tests/unlinkat.c b/tests/unlinkat.c index 8f3cd64c..81d690b3 100644 --- a/tests/unlinkat.c +++ b/tests/unlinkat.c @@ -13,13 +13,12 @@ main(void) static const char sample[] = "unlinkat_sample"; const long fd = (long) 0xdeadbeefffffffff; - int rc = syscall(__NR_unlinkat, fd, sample, 0); - printf("unlinkat(%d, \"%s\", 0) = %d %s (%m)\n", - (int) fd, sample, rc, - errno2name()); + long rc = syscall(__NR_unlinkat, fd, sample, 0); + printf("unlinkat(%d, \"%s\", 0) = %ld %s (%m)\n", + (int) fd, sample, rc, errno2name()); rc = syscall(__NR_unlinkat, -100, sample, -1L); - printf("unlinkat(%s, \"%s\", %s) = %d %s (%m)\n", + printf("unlinkat(%s, \"%s\", %s) = %ld %s (%m)\n", "AT_FDCWD", sample, "AT_SYMLINK_NOFOLLOW|AT_REMOVEDIR|AT_SYMLINK_FOLLOW" "|AT_NO_AUTOMOUNT|AT_EMPTY_PATH|0xffffe0ff",