mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 11:20:58 +01:00
Use the length modifier 'll' instead of 'q' to print long longs.
This commit is contained in:
parent
f825dd29c2
commit
14cc87e479
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132799
@ -259,7 +259,7 @@ main(int argc, char *argv[])
|
||||
blocksize));
|
||||
(void) printf("\t%s\n", p->fts_path);
|
||||
} else {
|
||||
(void) printf("%qd\t%s\n",
|
||||
(void) printf("%lld\t%s\n",
|
||||
(long long)howmany(p->fts_statp->st_blocks, blocksize),
|
||||
p->fts_path);
|
||||
}
|
||||
|
@ -909,12 +909,12 @@ icmp6_stats(u_long off __unused, const char *name, int af1 __unused)
|
||||
|
||||
p(icp6s_reflect, "\t%llu message response%s generated\n");
|
||||
p(icp6s_nd_toomanyopt, "\t%llu message%s with too many ND options\n");
|
||||
p(icp6s_nd_badopt, "\t%qu message%s with bad ND options\n");
|
||||
p(icp6s_badns, "\t%qu bad neighbor solicitation message%s\n");
|
||||
p(icp6s_badna, "\t%qu bad neighbor advertisement message%s\n");
|
||||
p(icp6s_badrs, "\t%qu bad router solicitation message%s\n");
|
||||
p(icp6s_badra, "\t%qu bad router advertisement message%s\n");
|
||||
p(icp6s_badredirect, "\t%qu bad redirect message%s\n");
|
||||
p(icp6s_nd_badopt, "\t%llu message%s with bad ND options\n");
|
||||
p(icp6s_badns, "\t%llu bad neighbor solicitation message%s\n");
|
||||
p(icp6s_badna, "\t%llu bad neighbor advertisement message%s\n");
|
||||
p(icp6s_badrs, "\t%llu bad router solicitation message%s\n");
|
||||
p(icp6s_badra, "\t%llu bad router advertisement message%s\n");
|
||||
p(icp6s_badredirect, "\t%llu bad redirect message%s\n");
|
||||
p(icp6s_pmtuchg, "\t%llu path MTU change%s\n");
|
||||
#undef p
|
||||
#undef p_5
|
||||
|
@ -332,7 +332,7 @@ print_arg(int fd, struct syscall_args *sc, unsigned long *args, long retval) {
|
||||
l1 = args[sc->offset];
|
||||
l2 = args[sc->offset+1];
|
||||
t = make_quad(l1, l2);
|
||||
asprintf(&tmp, "0x%qx", t);
|
||||
asprintf(&tmp, "0x%llx", t);
|
||||
break;
|
||||
}
|
||||
case Ptr:
|
||||
|
@ -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!",
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user