Skip to content

Commit

Permalink
Merge pull request #1333 from fliiiix/bugfix/printf-format
Browse files Browse the repository at this point in the history
Fix printf format to print 0 correctly
  • Loading branch information
Nightwalker-87 committed Sep 16, 2023
2 parents 956d654 + 23d52b9 commit 40fbdb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stlink-lib/sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static int32_t dump_CDB_command(uint8_t *cdb, uint8_t cdb_len) {
dbugp += sprintf(dbugp, "Sending CDB [");

for (uint8_t i = 0; i < cdb_len; i++) {
dbugp += sprintf(dbugp, " %#02x", (uint32_t)cdb[i]);
dbugp += sprintf(dbugp, " 0x%02x", (uint32_t)cdb[i]);
}

sprintf(dbugp, "]\n");
Expand Down

0 comments on commit 40fbdb4

Please sign in to comment.