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
@@ -45,11 +45,11 @@ void handler_i_have(
len = ihave_decode_service_request(service_request, service_len, &data);
if (len != -1) {
#if PRINT_ENABLED
fprintf(stderr, "I-Have: %s %d from %s %u!\r\n",
fprintf(stderr, "I-Have: %s %lu from %s %lu!\r\n",
bactext_object_type_name(data.object_id.type),
data.object_id.instance,
(unsigned long)data.object_id.instance,
bactext_object_type_name(data.device_id.type),
data.device_id.instance);
(unsigned long)data.device_id.instance);
#endif
} else {
#if PRINT_ENABLED