diff --git a/examples/telemetry-listen.c b/examples/telemetry-listen.c index 9aae8b07..2a745799 100644 --- a/examples/telemetry-listen.c +++ b/examples/telemetry-listen.c @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -50,7 +51,7 @@ static void save_telemetry(nvme_ctrl_t c) return; s = time(NULL); - ret = snprintf(buf, sizeof(buf), "/var/log/%s-telemetry-%ld", + ret = snprintf(buf, sizeof(buf), "/var/log/%s-telemetry-%" PRIu64, nvme_ctrl_get_subsysnqn(c), s); if (ret < 0) { free(log);