diff options
author | peter <peter@FreeBSD.org> | 2001-06-15 07:53:20 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-06-15 07:53:20 +0000 |
commit | 6ad938c7be3fe60f95d02c725a41ead668c74ba9 (patch) | |
tree | f98352339455a981fc0124aa128350f53ace396c /sys | |
parent | 7908b13fc327c783c167974890034ba53ecfe6c4 (diff) | |
download | FreeBSD-src-6ad938c7be3fe60f95d02c725a41ead668c74ba9.zip FreeBSD-src-6ad938c7be3fe60f95d02c725a41ead668c74ba9.tar.gz |
Fix warnings:
908: warning: long unsigned int format, unsigned int arg (arg 3)
887: warning: `timezero' defined but not used
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/fpu.c | 6 | ||||
-rw-r--r-- | sys/amd64/isa/npx.c | 6 | ||||
-rw-r--r-- | sys/i386/isa/npx.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index a321639..b6c69a0 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -127,7 +127,7 @@ static void npx_intr __P((void *)); #endif static int npx_probe __P((device_t dev)); static int npx_probe1 __P((device_t dev)); -#ifdef I586_CPU +#ifdef I586_CPU_XXX static long timezero __P((const char *funcname, void (*func)(void *buf, size_t len))); #endif /* I586_CPU */ @@ -881,7 +881,7 @@ npxsave(addr) PCPU_SET(npxproc, NULL); } -#ifdef I586_CPU +#ifdef I586_CPU_XXX static long timezero(funcname, func) const char *funcname; @@ -904,7 +904,7 @@ timezero(funcname, func) if (usec <= 0) usec = 1; if (bootverbose) - printf("%s bandwidth = %lu kBps\n", funcname, + printf("%s bandwidth = %u kBps\n", funcname, (u_int32_t)(((BUFSIZE >> 10) * 1000000) / usec)); free(buf, M_TEMP); return (usec); diff --git a/sys/amd64/isa/npx.c b/sys/amd64/isa/npx.c index a321639..b6c69a0 100644 --- a/sys/amd64/isa/npx.c +++ b/sys/amd64/isa/npx.c @@ -127,7 +127,7 @@ static void npx_intr __P((void *)); #endif static int npx_probe __P((device_t dev)); static int npx_probe1 __P((device_t dev)); -#ifdef I586_CPU +#ifdef I586_CPU_XXX static long timezero __P((const char *funcname, void (*func)(void *buf, size_t len))); #endif /* I586_CPU */ @@ -881,7 +881,7 @@ npxsave(addr) PCPU_SET(npxproc, NULL); } -#ifdef I586_CPU +#ifdef I586_CPU_XXX static long timezero(funcname, func) const char *funcname; @@ -904,7 +904,7 @@ timezero(funcname, func) if (usec <= 0) usec = 1; if (bootverbose) - printf("%s bandwidth = %lu kBps\n", funcname, + printf("%s bandwidth = %u kBps\n", funcname, (u_int32_t)(((BUFSIZE >> 10) * 1000000) / usec)); free(buf, M_TEMP); return (usec); diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index a321639..b6c69a0 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -127,7 +127,7 @@ static void npx_intr __P((void *)); #endif static int npx_probe __P((device_t dev)); static int npx_probe1 __P((device_t dev)); -#ifdef I586_CPU +#ifdef I586_CPU_XXX static long timezero __P((const char *funcname, void (*func)(void *buf, size_t len))); #endif /* I586_CPU */ @@ -881,7 +881,7 @@ npxsave(addr) PCPU_SET(npxproc, NULL); } -#ifdef I586_CPU +#ifdef I586_CPU_XXX static long timezero(funcname, func) const char *funcname; @@ -904,7 +904,7 @@ timezero(funcname, func) if (usec <= 0) usec = 1; if (bootverbose) - printf("%s bandwidth = %lu kBps\n", funcname, + printf("%s bandwidth = %u kBps\n", funcname, (u_int32_t)(((BUFSIZE >> 10) * 1000000) / usec)); free(buf, M_TEMP); return (usec); |