Commit 15697bc1 by IOWA\dheitbri

fixed issues with printfs

parent 1a594f14
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/// ///
// DAQ low level IO Library // DAQ low level IO Library
// //
// $Id: DaqFileIO.cxx,v 1.24 2016/10/17 13:04:28 IOWA\dheitbri Exp $ // $Id: DaqFileIO.cxx,v 1.25 2018/09/12 19:19:02 IOWA\dheitbri Exp $
// Date: March, 2005 // Date: March, 2005
// Author: Yiannis Papelis // Author: Yiannis Papelis
// //
...@@ -128,10 +128,10 @@ NearDump(FILE* p, int ofs) ...@@ -128,10 +128,10 @@ NearDump(FILE* p, int ofs)
for (int i=0; i<96; i++) { for (int i=0; i<96; i++) {
size_t n = fread(&d, sizeof(d), 1, p); size_t n = fread(&d, sizeof(d), 1, p);
if ( n == 1 ) { if ( n == 1 ) {
printf("%-d: 0x%08X %d\n", ftell(p)-sizeof(d), d, d); printf("%-d: 0x%08X %d\n", int(ftell(p)-sizeof(d)), d, d);
} }
else { else {
printf("Read at ofs %-d failed.\n", ftell(p)-sizeof(d)); printf("Read at ofs %-d failed.\n", int(ftell(p)-sizeof(d)));
} }
} }
fseek(p, origOfs, SEEK_SET); fseek(p, origOfs, SEEK_SET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment