aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2004-07-28 16:03:13 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2004-07-28 16:03:13 +0000
commit14cc87e4796cc33dbe477084822b31d1292ff338 (patch)
tree396dd4540ec06a7738f7f49b42efaf5f6f7d8181 /usr.sbin/pkg_install
parentf825dd29c275c9168a69c27759302a47483c51a8 (diff)
downloadsrc-14cc87e4796cc33dbe477084822b31d1292ff338.tar.gz
src-14cc87e4796cc33dbe477084822b31d1292ff338.zip
Use the length modifier 'll' instead of 'q' to print long longs.
Notes
Notes: svn path=/head/; revision=132799
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 1399bd973429..a2225c229b01 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 651c64b093e3..e406caa89704 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 770235f99c80..06379b69c7f9 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) {