Fix code warning.
Change-Id: Ib11fb49f528d3688351ae349d5b4e307c28b3967
diff --git a/mbtk/mbtk_logd/main.c b/mbtk/mbtk_logd/main.c
index 7925381..ef750e8 100755
--- a/mbtk/mbtk_logd/main.c
+++ b/mbtk/mbtk_logd/main.c
@@ -41,9 +41,9 @@
}
_filter_list = entry->filter_list;
for (n = 0; n < 10; n++) {
- printf("%s %d: malloc %x!\n", __FUNCTION__, __LINE__, _filter_list);
+ printf("%s %d: malloc %p!\n", __FUNCTION__, __LINE__, _filter_list);
if (_filter_list) {
- printf("%s %d: malloc %x!\n", __FUNCTION__, __LINE__, _filter_list->next);
+ printf("%s %d: malloc %p!\n", __FUNCTION__, __LINE__, _filter_list->next);
if (_filter_list->tag) {
free(_filter_list->tag);
}
@@ -69,7 +69,7 @@
json_object* fileter_listjson = NULL;
log_config_entry* entry;
int i, n, ret, array_length;
- char* cmdval = NULL;
+ const char* cmdval = NULL;
printf("MBTK_LOGD: in parse_config\n");
jsonobj = json_object_from_file(LOG_CONFIG_PATH);
@@ -108,7 +108,7 @@
json_object_object_get_ex(datajson, "name", &listjson);
entry->name = json_object_get_string(listjson);
- printf("cmdval: %x, %s\n", entry->name, entry->name);
+ printf("cmdval: %s\n", entry->name);
json_object_object_get_ex(datajson, "log_file", &listjson);
entry->out_path = json_object_get_string(listjson);