Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

time_t problem in macppc/dev/cuda.c



Hi,
While compiling macppc kernel I ran into this

    compile  wg2/cuda.o
cc1: warnings being treated as errors
/n4/usr/src/sys/arch/macppc/dev/cuda.c: In function 'cuda_todr_get':
/n4/usr/src/sys/arch/macppc/dev/cuda.c:770: warning: format '%ld'
expects type 'long int', but argument 2 has type 'time_t'

the code is below

static int
cuda_todr_get(todr_chip_handle_t tch, volatile struct timeval *tvp)
{
        ....
        DPRINTF("tod: %ld\n", tvp->tv_sec);

changed this to

        DPRINTF("tod: %ld\n", (unsigned long)tvp->tv_sec);

and iseems to work


Home | Main Index | Thread Index | Old Index