diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-07-28 16:03:13 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-07-28 16:03:13 +0000 |
commit | 7cdc27d942c90c6de3bea3b6dc6c8a1872052e2b (patch) | |
tree | 396dd4540ec06a7738f7f49b42efaf5f6f7d8181 /usr.sbin/pkg_install/lib | |
parent | d0c237fd3c8db61a5ea4108aed735fe3198d27e3 (diff) | |
download | FreeBSD-src-7cdc27d942c90c6de3bea3b6dc6c8a1872052e2b.zip FreeBSD-src-7cdc27d942c90c6de3bea3b6dc6c8a1872052e2b.tar.gz |
Use the length modifier 'll' instead of 'q' to print long longs.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 2 | ||||
-rw-r--r-- | usr.sbin/pkg_install/lib/pen.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 651c64b..e406caa 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -196,7 +196,7 @@ fileGetContents(const char *fname) } if (read(fd, contents, sb.st_size) != sb.st_size) { cleanup(0); - errx(2, "%s: short read on '%s' - did not get %qd bytes", __func__, + errx(2, "%s: short read on '%s' - did not get %lld bytes", __func__, fname, (long long)sb.st_size); } close(fd); diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index 770235f..06379b6 100644 --- a/usr.sbin/pkg_install/lib/pen.c +++ b/usr.sbin/pkg_install/lib/pen.c @@ -112,7 +112,7 @@ make_playpen(char *pen, off_t sz) if (Verbose) { if (sz) - fprintf(stderr, "Requested space: %d bytes, free space: %qd bytes in %s\n", (int)sz, (long long)min_free(pen), pen); + fprintf(stderr, "Requested space: %d bytes, free space: %lld bytes in %s\n", (int)sz, (long long)min_free(pen), pen); } if (min_free(pen) < sz) { |