Changed a bunch of debug and information printfs so that they have a better chance of working on systems where int is smaller than 32 bits also fixed the signed/unsigned type of some to match the type of the arguments.

This commit is contained in:
petermcs
2010-01-26 21:30:38 +00:00
parent 0b76dd08c9
commit bfa8936bf5
25 changed files with 75 additions and 75 deletions
+3 -3
View File
@@ -62,12 +62,12 @@ void npdu_handler(
} else {
if (dest.net) {
#if PRINT_ENABLED
printf("NPDU: DNET=%d. Discarded!\n", dest.net);
printf("NPDU: DNET=%u. Discarded!\n", (unsigned)dest.net);
#endif
} else {
#if PRINT_ENABLED
printf("NPDU: BACnet Protocol Version=%d. Discarded!\n",
npdu_data.protocol_version);
printf("NPDU: BACnet Protocol Version=%u. Discarded!\n",
(unsigned)npdu_data.protocol_version);
#endif
}
}