-/* $OpenBSD: df.c,v 1.58 2016/03/14 14:44:03 mmcc Exp $ */
+/* $OpenBSD: df.c,v 1.59 2016/08/14 21:07:40 krw Exp $ */
/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */
/*
if ((nr = pread(rfd, buf, cnt, off)) != cnt) {
/* Probably a dismounted disk if errno == EIO. */
if (errno != EIO)
- (void)fprintf(stderr, "\ndf: %qd: %s\n",
- off, strerror(nr > 0 ? EIO : errno));
+ (void)fprintf(stderr, "\ndf: %lld: %s\n",
+ (long long)off, strerror(nr > 0 ? EIO : errno));
return (0);
}
return (1);