fixed gcc warnings

This commit is contained in:
Jeff Hill
1996-09-04 20:44:19 +00:00
parent 525842b076
commit a01241aa19
6 changed files with 36 additions and 34 deletions

View File

@@ -1130,7 +1130,7 @@ void at5vxi_stat(
work = ((uint32_t)pdd->bio[1]) << (sizeof(uint16_t)*NBBY);
work |= pdd->bio[0];
printf("\tBIO: value %x\n", work);
printf("\tBIO: value %lx\n", (unsigned long) work);
}
for(channel=0; channel<NELEMENTS(pconfig->tv); channel++){

View File

@@ -40,6 +40,7 @@ static char *sccsId = "@(#)drvHpe1445a.c 1.5\t8/27/93";
#include <vxWorks.h>
#include <stdioLib.h>
#include <taskLib.h>
#include <string.h>
#include <module_types.h>
#include <fast_lock.h>
@@ -1004,14 +1005,13 @@ unsigned long npoints
return s;
}
sprintf(pc->buf, "source:list:segment:define %u", npoints);
sprintf(pc->buf, "source:list:segment:define %lu", npoints);
s = hpe1445aWrite(la, pc->buf);
if(s){
return s;
}
sprintf( pc->buf,
"source:arbitrary:download VXI,%s%s,%d",
"source:arbitrary:download VXI,%s%s,%lu",
SEGMENT_NAME_PREFIX,
pWaveformName,
npoints);