Skip to content

Commit

Permalink
Merge pull request #422 from wryun/fix-totp-lfs-error-params
Browse files Browse the repository at this point in the history
Fix TOTP LFS printf string
  • Loading branch information
tahnok authored Jul 21, 2024
2 parents 5ec3dca + 222c60b commit 8aa1a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion movement/watch_faces/complication/totp_face_lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8aa1a3f

Please sign in to comment.