diff --git a/dmtree/tr181/dynamicdns.c b/dmtree/tr181/dynamicdns.c index 664b40ce..896c01f3 100644 --- a/dmtree/tr181/dynamicdns.c +++ b/dmtree/tr181/dynamicdns.c @@ -65,7 +65,7 @@ static void update_dmmap_ddns_global_settings(long int filecount) time_t t_time = time(NULL); - snprintf(last_update, sizeof(last_update), "%ld", t_time); + snprintf(last_update, sizeof(last_update), "%lld", (long long) t_time); snprintf(file_count, sizeof(file_count), "%ld", filecount); dmuci_set_value_bbfdm("dmmap_ddns", "global", "last_update", last_update); diff --git a/libbbf_api/dmubus.c b/libbbf_api/dmubus.c index a4af14f3..b98b843d 100644 --- a/libbbf_api/dmubus.c +++ b/libbbf_api/dmubus.c @@ -130,8 +130,8 @@ static void __async_result_callback(struct ubus_request *req, int type, struct b } if (difftime(resp_time, entry->last_request) >= UBUS_TIMEOUT/1000) { - printf("Req [%s:%s] has been timedout in async call %lu, %lu\n\r", - entry->obj, entry->method, resp_time, entry->last_request); + printf("Req [%s:%s] has been timedout in async call %lld, %lld\n\r", + entry->obj, entry->method, (long long) resp_time, (long long) entry->last_request); entry->failed = true; } else { entry->failed = false;