Skip to content

Commit 545d662

Browse files
authored
Fix a printf format specifier on FreeBSD/i386
This is breaking the build on FreeBSD/i386. Originally committed downstream as freebsd/freebsd-src@2d76470b701 Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Alan Somers <[email protected]> Sponsored by: ConnectWise Closes #17705
1 parent 3387d34 commit 545d662

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/zfs/zfs_main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6864,17 +6864,17 @@ print_holds(boolean_t scripted, int nwidth, int tagwidth, nvlist_t *nvl,
68646864

68656865
if (scripted) {
68666866
if (parsable) {
6867-
(void) printf("%s\t%s\t%ld\n", zname,
6868-
tagname, time);
6867+
(void) printf("%s\t%s\t%lld\n", zname,
6868+
tagname, (long long)time);
68696869
} else {
68706870
(void) printf("%s\t%s\t%s\n", zname,
68716871
tagname, tsbuf);
68726872
}
68736873
} else {
68746874
if (parsable) {
6875-
(void) printf("%-*s %-*s %ld\n",
6875+
(void) printf("%-*s %-*s %lld\n",
68766876
nwidth, zname, tagwidth,
6877-
tagname, time);
6877+
tagname, (long long)time);
68786878
} else {
68796879
(void) printf("%-*s %-*s %s\n",
68806880
nwidth, zname, tagwidth,

0 commit comments

Comments
 (0)