summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-07-28 16:03:13 +0000
committerstefanf <stefanf@FreeBSD.org>2004-07-28 16:03:13 +0000
commit7cdc27d942c90c6de3bea3b6dc6c8a1872052e2b (patch)
tree396dd4540ec06a7738f7f49b42efaf5f6f7d8181 /usr.sbin/pkg_install
parentd0c237fd3c8db61a5ea4108aed735fe3198d27e3 (diff)
downloadFreeBSD-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')
-rw-r--r--usr.sbin/pkg_install/add/perform.c4
-rw-r--r--usr.sbin/pkg_install/lib/file.c2
-rw-r--r--usr.sbin/pkg_install/lib/pen.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c
index 1399bd9..a2225c2 100644
--- a/usr.sbin/pkg_install/add/perform.c
+++ b/usr.sbin/pkg_install/add/perform.c
@@ -137,7 +137,7 @@ pkg_do(char *pkg)
}
Home = make_playpen(playpen, sb.st_size * 4);
if (!Home)
- errx(1, "unable to make playpen for %qd bytes", (long long)sb.st_size * 4);
+ errx(1, "unable to make playpen for %lld bytes", (long long)sb.st_size * 4);
where_to = Home;
/* Since we can call ourselves recursively, keep notes on where we came from */
if (!getenv("_TOP"))
@@ -191,7 +191,7 @@ pkg_do(char *pkg)
*/
if (!extract && !inPlace && min_free(playpen) < sb.st_size * 4) {
- warnx("projected size of %qd exceeds available free space.\n"
+ warnx("projected size of %lld exceeds available free space.\n"
"Please set your PKG_TMPDIR variable to point to a location with more\n"
"free space and try again", (long long)sb.st_size * 4);
warnx("not extracting %s\ninto %s, sorry!",
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) {
OpenPOWER on IntegriCloud