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
@@ -198,9 +198,9 @@ static void PrintReadPropertyMultipleData(
if (rpm_data) {
#if PRINT_ENABLED
fprintf(stdout, "%s #%u\r\n",
fprintf(stdout, "%s #%lu\r\n",
bactext_object_type_name(rpm_data->object_type),
rpm_data->object_instance);
(unsigned long)rpm_data->object_instance);
fprintf(stdout, "{\r\n");
#endif
listOfProperties = rpm_data->listOfProperties;
@@ -212,7 +212,7 @@ static void PrintReadPropertyMultipleData(
propertyIdentifier));
} else {
fprintf(stdout, " proprietary %u: ",
listOfProperties->propertyIdentifier);
(unsigned)listOfProperties->propertyIdentifier);
}
#endif
if (listOfProperties->propertyArrayIndex != BACNET_ARRAY_ALL) {