]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
wdc-nvme: fix the build failure
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Thu, 3 Jun 2021 16:51:10 +0000 (22:21 +0530)
committerKeith Busch <kbusch@kernel.org>
Thu, 3 Jun 2021 17:32:08 +0000 (11:32 -0600)
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
plugins/wdc/wdc-nvme.c

index 5599984c7949947af34547bc24bc3571e1f5d518..585bc10e01fed053894abcef6983a072c44ce970 100644 (file)
@@ -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);