Revert r228603, and add the workaround to sbin/fsdb/Makefile instead.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-18 17:42:26 +00:00
parent 7f106882fe
commit cf2cbe3458
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228693
2 changed files with 6 additions and 3 deletions

View file

@ -9,6 +9,10 @@ SRCS= fsdb.c fsdbutil.c \
pass5.c setup.c utilities.c ffs_subr.c ffs_tables.c
CFLAGS+= -I${.CURDIR}/../fsck_ffs
WARNS?= 2
.if ${CC:T:Mclang} == "clang"
# Work around a problem with format string warnings and ntohs macros.
NO_WFORMAT=
.endif
LDADD= -ledit -ltermcap
DPADD= ${LIBEDIT} ${LIBTERMCAP}
.PATH: ${.CURDIR}/../fsck_ffs ${.CURDIR}/../../sys/ufs/ffs

View file

@ -193,9 +193,8 @@ printstat(const char *cp, ino_t inum, union dinode *dp)
blocks = DIP(dp, di_blocks);
gen = DIP(dp, di_gen);
printf("LINKCNT=%hd FLAGS=%#x BLKCNT=%jx GEN=%jx\n",
(short)DIP(dp, di_nlink), DIP(dp, di_flags), (intmax_t)blocks,
(intmax_t)gen);
printf("LINKCNT=%hd FLAGS=%#x BLKCNT=%jx GEN=%jx\n", DIP(dp, di_nlink),
DIP(dp, di_flags), (intmax_t)blocks, (intmax_t)gen);
}