Subject: %: , %b still in kernel sources
To: None <current-users@NetBSD.ORG>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: current-users
Date: 03/20/1997 19:51:17
While compiling i386 kernel from about week ago ...
cc1: warnings being treated as errors
../../../../kern/subr_prf.c: In function `panic':
../../../../kern/subr_prf.c:126: warning: unknown conversion type character `:' in format
../../../../kern/subr_prf.c:126: warning: too many arguments for format
line 126 was:
printf("panic: %:\n", fmt, ap);
I've changed it to make it compile somehow ( %: -> %s: %s) but got
cc1: warnings being treated as errors
../../../../dev/isa/wd.c: In function `wderror':
../../../../dev/isa/wd.c:1782: warning: unknown conversion type character `b' in format
../../../../dev/isa/wd.c:1782: warning: unknown conversion type character `b' in format
../../../../dev/isa/wd.c:1782: warning: too many arguments for format
lines around 1782:
} else
printf("%s: %s: status %b error %b\n", wdc->sc_dev.dv_xname,
msg, wdc->sc_status, WDCS_BITS, wdc->sc_error, WDERR_BITS);
}
Sometimes in November Jason wrote about move to bitmask_snprintf() and effort
to get rid of %:, %b in kernel's printf(). So these are remains ?
Jarda
P.S. to see options - typical compile line looks like:
cc -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -I. -I../../../../arch -I../../../.. -nostdinc -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DEXEC_AOUT -DEXEC_SCRIPT -DI486_CPU -DI586_CPU -DI686_CPU -DVM86 -DDUMMY_NOPS -DXSERVER -DUCONSOLE -DINSECURE -DDDB -DDIAGNOSTIC -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DCOMPAT_NOMID -DCOMPAT_11 -DCOMPAT_12 -DCOMPAT_43 -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DEXEC_ELF32 -DUSER_LDT -DFFS -DNFS -DCD9660 -DMSDOSFS -DFDESC -DKERNFS -DNULLFS -DPROCFS -DQUOTA -DFIFO -DINET -DMAXUSERS=32 -D_KERNEL -Di386 -c ../../../../kern/subr_prf.c
--
Jaromir Dolecek ICS MU, Botanicka 68A, Brno, 60200, Czech Rep.
dolecek@ics.muni.cz Tel.: +42-5-4151 2266
http://www.ics.muni.cz/~dolecek/
-------------------------------------------------------------------------------
It is better never to have been born. But who among us has such luck?
One in a million, perhaps.