Changed sprintf from %u or %d to %lu to fix problem in PIC ports.

This commit is contained in:
skarg
2007-03-27 11:20:39 +00:00
parent 6f04232d32
commit b68f1a0f8e
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ char *Analog_Input_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_ANALOG_INPUTS) {
sprintf(text_string, "ANALOG INPUT %u", object_instance);
sprintf(text_string, "ANALOG INPUT %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -212,7 +212,7 @@ char *Analog_Output_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_ANALOG_OUTPUTS) {
sprintf(text_string, "ANALOG OUTPUT %u", object_instance);
sprintf(text_string, "ANALOG OUTPUT %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -142,7 +142,7 @@ char *Analog_Value_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_ANALOG_VALUES) {
sprintf(text_string, "ANALOG VALUE %u", object_instance);
sprintf(text_string, "ANALOG VALUE %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -155,7 +155,7 @@ int bacfile_encode_property_apdu(uint8_t * apdu,
OBJECT_FILE, object_instance);
break;
case PROP_OBJECT_NAME:
sprintf(text_string, "FILE %d", object_instance);
sprintf(text_string, "FILE %lu", object_instance);
characterstring_init_ansi(&char_string, text_string);
apdu_len = encode_tagged_character_string(&apdu[0], &char_string);
break;
+1 -1
View File
@@ -114,7 +114,7 @@ char *Binary_Input_Name(uint32_t object_instance)
Binary_Input_Init();
if (object_instance < MAX_BINARY_INPUTS) {
sprintf(text_string, "BINARY INPUT %u", object_instance);
sprintf(text_string, "BINARY INPUT %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -132,7 +132,7 @@ char *Binary_Output_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_BINARY_OUTPUTS) {
sprintf(text_string, "BINARY OUTPUT %u", object_instance);
sprintf(text_string, "BINARY OUTPUT %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -132,7 +132,7 @@ char *Binary_Value_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_BINARY_VALUES) {
sprintf(text_string, "BINARY VALUE %u", object_instance);
sprintf(text_string, "BINARY VALUE %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -233,7 +233,7 @@ char *Load_Control_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_LOAD_CONTROLS) {
sprintf(text_string, "LOAD CONTROL %u", object_instance);
sprintf(text_string, "LOAD CONTROL %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -251,7 +251,7 @@ char *Lighting_Output_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_LIGHTING_OUTPUTS) {
sprintf(text_string, "LIGHTING OUTPUT %u", object_instance);
sprintf(text_string, "LIGHTING OUTPUT %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -134,7 +134,7 @@ char *Life_Safety_Point_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_LIFE_SAFETY_POINTS) {
sprintf(text_string, "LS POINT %u", object_instance);
sprintf(text_string, "LS POINT %lu", object_instance);
return text_string;
}
+1 -1
View File
@@ -136,7 +136,7 @@ char *Multistate_Output_Name(uint32_t object_instance)
static char text_string[32] = ""; /* okay for single thread */
if (object_instance < MAX_MULTISTATE_OUTPUTS) {
sprintf(text_string, "MULTISTATE OUTPUT %u", object_instance);
sprintf(text_string, "MULTISTATE OUTPUT %lu", object_instance);
return text_string;
}