Snippets for ipmiutil 3.2.1 from Alpine armv7
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-armv7/community/ipmiutil/ipmiutil-3.2.1-r0.log.
-
ievents.c:818:10: warning: 'dimm' may be used uninitialized [-Wmaybe-uninitialized] 818 | printf("decode_mem_default: bdata=%02x(%d) %d dimm=%d\n",bdata,bdata,offset,dimm); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ifru.c:1234:34: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] 1234 | if (fdebug) printf("pfrubuf[%ld]: %02x %02x %02x, j=%d, snlen=%d/%d\n", | ~~^ | | | long int | %d 1235 | (pfru-pfrubuf),pfru[0],pfru[1],pfru[2],j,snlen,sernum_len); | ~~~~~~~~~~~~~~ | | | int -
ifru.c:1249:34: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] 1249 | if (fdebug) printf("pfrubuf[%ld]: %02x %02x %02x, j=%d, alen=%d/%d\n", | ~~^ | | | long int | %d 1250 | (pfru-pfrubuf),pfru[0],pfru[1],pfru[2],j,alen,asset_len); | ~~~~~~~~~~~~~~ | | | int -
ifru.c:1271:34: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] 1271 | if (fdebug) printf("pfrubuf[%ld]: %02x %02x %02x, j=%d n=%d remainder=%d\n", | ~~^ | | | long int | %d 1272 | (pfru-pfrubuf),pfru[0],pfru[1],pfru[2],j,n,max); | ~~~~~~~~~~~~~~ | | | int -
isensor.c:2645:61: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=] 2645 | if (fdebug) printf("entity %d.%d, idlen=%d sizeof=%lu idstr0=%c s0=%x\n", | ~~^ | | | long unsigned int | %u 2646 | sdr01->entity_id, sdr01->entity_inst, 2647 | ilen,sizeof(SDR01REC),idstr[0],sdr[ioff]); | ~~~~~~~~~~~~~~~~ | | | unsigned int -
/usr/include/fortify/stdio.h:122:16: warning: 'val' may be used uninitialized [-Wmaybe-uninitialized] 122 | return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ihpm.c:1228:39: warning: format '%d' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long long int'} [-Wformat=] 1228 | printf("| | Upload Time: %02d.%02d | Image Size: %05x |\n", | ~~~^ | | | int | %02lld 1229 | timeElapsed/60,timeElapsed%60,totalSent); | ~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
ihpm.c:1228:44: warning: format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 1228 | printf("| | Upload Time: %02d.%02d | Image Size: %05x |\n", | ~~~^ | | | int | %02lld 1229 | timeElapsed/60,timeElapsed%60,totalSent); | ~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
ihpm.c:2513:43: warning: format '%d' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long long int'} [-Wformat=] 2513 | printf(" Time Taken %02d:%02d\n",(end-start)/60, (end-start)%60); | ~~~^ ~~~~~~~~~~~~~~ | | | | int time_t {aka long long int} | %02lld -
ihpm.c:2513:48: warning: format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 2513 | printf(" Time Taken %02d:%02d\n",(end-start)/60, (end-start)%60); | ~~~^ ~~~~~~~~~~~~~~ | | | | int time_t {aka long long int} | %02lld -
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> | ^~~~~~~ -
oem_intel.c:1115:12: warning: 'bdata' may be used uninitialized [-Wmaybe-uninitialized] 1115 | if (bdata == 0xFF) n = sprintf(desc,DIMM_UNKNOWN); /* invalid */ | ^ -
oem_dell.c:3815:52: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 3815 | printf ("System Instantaneous Headroom : %ld BTU/hr\n",instantpowerhearoom); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
oem_dell.c:3816:60: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 3816 | printf ("System Peak Headroom : %ld BTU/hr\n",peakpowerheadroombtuphr); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
oem_dell.c:4297:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4297 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4299:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4299 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4301:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4301 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4303:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4303 | printf ("%4d BTU/hr\n\r",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4307:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4307 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4309:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4309 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4311:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4311 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4313:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4313 | printf ("%4d BTU/hr\n\r",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4317:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4317 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4319:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4319 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4321:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4321 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4323:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4323 | printf ("%4d BTU/hr\n\r\n\r",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4331:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4331 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4333:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4333 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4335:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4335 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4337:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4337 | printf ("%4ld W \n\r",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4341:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4341 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4343:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4343 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4345:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4345 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4347:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4347 | printf ("%4ld W \n\r",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4351:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4351 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4353:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4353 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4355:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4355 | printf ("%4ld W ",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4357:37: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4357 | printf ("%4ld W \n\r\n\r",tempbtuphrconv); | ~~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %4lld -
oem_dell.c:4486:51: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4486 | printf ("Maximum power: %ld BTU/hr\n",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
oem_dell.c:4488:51: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4488 | printf ("Minimum power: %ld BTU/hr\n",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
oem_dell.c:4490:51: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 4490 | printf ("Power cap : %ld BTU/hr\n",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
oem_dell.c:4330:27: warning: 'avgpower.lastminutepower' may be used uninitialized [-Wmaybe-uninitialized] 4330 | tempbtuphrconv=(avgpower.lastminutepower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4332:39: warning: 'avgpower.lasthourpower' may be used uninitialized [-Wmaybe-uninitialized] 4332 | tempbtuphrconv=(avgpower.lasthourpower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4334:39: warning: 'avgpower.lastdaypower' may be used uninitialized [-Wmaybe-uninitialized] 4334 | tempbtuphrconv=(avgpower.lastdaypower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4336:39: warning: 'avgpower.lastweakpower' may be used uninitialized [-Wmaybe-uninitialized] 4336 | tempbtuphrconv=(avgpower.lastweakpower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4340:39: warning: 'stPeakpower.lastminutepower' may be used uninitialized [-Wmaybe-uninitialized] 4340 | tempbtuphrconv=(stPeakpower.lastminutepower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4342:39: warning: 'stPeakpower.lasthourpower' may be used uninitialized [-Wmaybe-uninitialized] 4342 | tempbtuphrconv=(stPeakpower.lasthourpower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4344:39: warning: 'stPeakpower.lastdaypower' may be used uninitialized [-Wmaybe-uninitialized] 4344 | tempbtuphrconv=(stPeakpower.lastdaypower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4346:39: warning: 'stPeakpower.lastweakpower' may be used uninitialized [-Wmaybe-uninitialized] 4346 | tempbtuphrconv=(stPeakpower.lastweakpower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4366:9: warning: 'stPeakpower.lastminutepowertime' may be used uninitialized [-Wmaybe-uninitialized] 4366 | ipmi_time_to_str(lastminutepeakpower, timestr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4368:9: warning: 'stPeakpower.lasthourpowertime' may be used uninitialized [-Wmaybe-uninitialized] 4368 | ipmi_time_to_str(lasthourpeakpower, timestr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4370:9: warning: 'stPeakpower.lastdaypowertime' may be used uninitialized [-Wmaybe-uninitialized] 4370 | ipmi_time_to_str(lastdaypeakpower, timestr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4372:9: warning: 'stPeakpower.lastweekpowertime' may be used uninitialized [-Wmaybe-uninitialized] 4372 | ipmi_time_to_str(lastweekpeakpower, timestr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
imbapi.c:2242:83: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] 2242 | printf("RegisterForImbAsync error status=%d, len=%lu sizeint=%lu\n", status, respLength, sizeof(int)); | ~~^ ~~~~~~~~~~~ | | | | long unsigned int unsigned int | %u -
ipmilan.c:1058:56: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] 1058 | fprintf(fpdbg,"message size %d > buffer size %lu\n",clen,sizeof(cbuf)); | ~~^ ~~~~~~~~~~~~ | | | | | unsigned int | long unsigned int | %u -
ipmi_sample_evt.c:243:29: warning: format '%x' expects argument of type 'unsigned int *', but argument 4 has type 'short unsigned int *' [-Wformat=] 243 | rv = fscanf(fd,"%x %x",&t,&r); | ~^ ~~ | | | | | short unsigned int * | unsigned int * | %hx