fix dev_t formats.
This commit is contained in:
parent
6be0c3f194
commit
ab515b681b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: compare.c,v 1.51 2007/02/04 08:03:18 elad Exp $ */
|
||||
/* $NetBSD: compare.c,v 1.52 2008/12/28 19:36:30 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: compare.c,v 1.51 2007/02/04 08:03:18 elad Exp $");
|
||||
__RCSID("$NetBSD: compare.c,v 1.52 2008/12/28 19:36:30 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -191,8 +191,9 @@ typeerr: LABEL;
|
||||
(s->type == F_BLOCK || s->type == F_CHAR) &&
|
||||
s->st_rdev != p->fts_statp->st_rdev) {
|
||||
LABEL;
|
||||
printf("%sdevice (%#x, %#x",
|
||||
tab, s->st_rdev, p->fts_statp->st_rdev);
|
||||
printf("%sdevice (%#llx, %#llx",
|
||||
tab, (long long)s->st_rdev,
|
||||
(long long)p->fts_statp->st_rdev);
|
||||
if (uflag) {
|
||||
if ((unlink(p->fts_accpath) == -1) ||
|
||||
(mknod(p->fts_accpath,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: create.c,v 1.55 2007/12/05 16:55:29 christos Exp $ */
|
||||
/* $NetBSD: create.c,v 1.56 2008/12/28 19:36:30 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: create.c,v 1.55 2007/12/05 16:55:29 christos Exp $");
|
||||
__RCSID("$NetBSD: create.c,v 1.56 2008/12/28 19:36:30 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -189,7 +189,8 @@ statf(FTSENT *p)
|
||||
output(&indent, "mode=%#o", p->fts_statp->st_mode & MBITS);
|
||||
if (keys & F_DEV &&
|
||||
(S_ISBLK(p->fts_statp->st_mode) || S_ISCHR(p->fts_statp->st_mode)))
|
||||
output(&indent, "device=%#x", p->fts_statp->st_rdev);
|
||||
output(&indent, "device=%#llx",
|
||||
(long long)p->fts_statp->st_rdev);
|
||||
if (keys & F_NLINK && p->fts_statp->st_nlink != 1)
|
||||
output(&indent, "nlink=%u", p->fts_statp->st_nlink);
|
||||
if (keys & F_SIZE && S_ISREG(p->fts_statp->st_mode))
|
||||
|
Loading…
Reference in New Issue
Block a user