]> git.earman.xyz Git - sensor-watch.git/commitdiff
Fix TOTP LFS printf string
authorJames Haggerty <james@gruemail.com>
Sat, 20 Jul 2024 23:10:28 +0000 (09:10 +1000)
committerJames Haggerty <james@gruemail.com>
Sat, 20 Jul 2024 23:10:28 +0000 (09:10 +1000)
movement/watch_faces/complication/totp_face_lfs.c

index 666686200cd7c31669d10d580a86a94a847c322d..5d7defe88e26bde2545ea91dfa2c8fea30de9d41 100644 (file)
@@ -216,7 +216,7 @@ static uint8_t *totp_face_lfs_get_file_secret(struct totp_record *record) {
         return current_secret;
     }
     if (base32_decode((unsigned char *)buffer, current_secret) != record->secret_size) {
-        printf("TOTP can't properly decode secret from totp_uris.txt; failed at offset %d; read to %d\n", buffer, record->file_secret_offset, file_secret_offset);
+        printf("TOTP can't properly decode secret '%s' from totp_uris.txt; failed at offset %d; read to %ld\n", buffer, record->file_secret_offset, file_secret_offset);
     }
     return current_secret;
 }