prepare for 64 bit dev_t
This commit is contained in:
parent
0e48247bcf
commit
909ffa3267
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: print.c,v 1.43 2008/11/02 02:27:32 ahoka Exp $ */
|
/* $NetBSD: print.c,v 1.44 2008/12/28 19:30:33 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993, 1994
|
* Copyright (c) 1989, 1993, 1994
|
||||||
@ -37,7 +37,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)print.c 8.5 (Berkeley) 7/28/94";
|
static char sccsid[] = "@(#)print.c 8.5 (Berkeley) 7/28/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: print.c,v 1.43 2008/11/02 02:27:32 ahoka Exp $");
|
__RCSID("$NetBSD: print.c,v 1.44 2008/12/28 19:30:33 christos Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -128,9 +128,9 @@ printlong(DISPLAY *dp)
|
|||||||
if (f_flags)
|
if (f_flags)
|
||||||
(void)printf("%-*s ", dp->s_flags, np->flags);
|
(void)printf("%-*s ", dp->s_flags, np->flags);
|
||||||
if (S_ISCHR(sp->st_mode) || S_ISBLK(sp->st_mode))
|
if (S_ISCHR(sp->st_mode) || S_ISBLK(sp->st_mode))
|
||||||
(void)printf("%*u, %*u ",
|
(void)printf("%*lld, %*lld ",
|
||||||
dp->s_major, major(sp->st_rdev), dp->s_minor,
|
dp->s_major, (long long)major(sp->st_rdev),
|
||||||
minor(sp->st_rdev));
|
dp->s_minor, (long long)minor(sp->st_rdev));
|
||||||
else
|
else
|
||||||
if (f_humanize) {
|
if (f_humanize) {
|
||||||
if ((humanize_number(szbuf, sizeof(szbuf),
|
if ((humanize_number(szbuf, sizeof(szbuf),
|
||||||
|
Loading…
Reference in New Issue
Block a user