From 76ba14251abfa42837fc4c05899cee9159c5c348 Mon Sep 17 00:00:00 2001 From: Gollu Appalanaidu Date: Thu, 3 Jun 2021 22:21:10 +0530 Subject: [PATCH] wdc-nvme: fix the build failure Signed-off-by: Gollu Appalanaidu --- plugins/wdc/wdc-nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wdc/wdc-nvme.c b/plugins/wdc/wdc-nvme.c index 5599984c..585bc10e 100644 --- a/plugins/wdc/wdc-nvme.c +++ b/plugins/wdc/wdc-nvme.c @@ -4251,7 +4251,7 @@ static void wdc_print_fw_act_history_log_json(__u8 *data, int num_entries, __u32 uint64_t timestamp = (0x0000FFFFFFFFFFFF & le64_to_cpu(fw_act_history_entry->entry[entryIdx].timestamp)); sprintf((char *)time_str, "%04d:%02d:%02d", (int)((timestamp/(3600*1000))%24), (int)((timestamp/(1000*60))%60), (int)((timestamp/1000)%60)); - json_object_add_value_int(root, "Power on Hour", time_str); + json_object_add_value_string(root, "Power on Hour", time_str); } else { uint64_t timestamp = (0x0000FFFFFFFFFFFF & le64_to_cpu(fw_act_history_entry->entry[entryIdx].timestamp)); json_object_add_value_int(root, "Timestamp", timestamp); -- 2.50.1