chiark / gitweb /
Use stdint.h macros instead of casts to print uint64_t values
[elogind.git] / src / journal / journal-qrcode.c
index 10a14e4deff10bfde14ad30003dff3b9e2a4e7b1..1db66e89c64397c8c36c9f5f0f8ca683e7399370 100644 (file)
@@ -76,9 +76,9 @@ int print_qr_code(
                 fprintf(f, "%02x", ((uint8_t*) seed)[i]);
         }
 
-        fprintf(f, "/%llx-%llx?machine=" SD_ID128_FORMAT_STR,
-                (unsigned long long) start,
-                (unsigned long long) interval,
+        fprintf(f, "/%"PRIx64"-%"PRIx64"?machine=" SD_ID128_FORMAT_STR,
+                start,
+                interval,
                 SD_ID128_FORMAT_VAL(machine));
 
         if (hn)