Skip to content

Commit

Permalink
%p outputs lowercase address
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Aug 26, 2022
1 parent c4d98d1 commit 749d79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lwprintf/src/lwprintf/lwprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ prv_format(lwprintf_int_t* p, va_list arg) {
#if LWPRINTF_CFG_SUPPORT_TYPE_POINTER
case 'p': {
p->m.base = 16; /* Go to hex format */
p->m.flags.uc = 1; /* Uppercase numbers */
p->m.flags.uc = 0; /* Uppercase characters */
p->m.flags.zero = 1; /* Zero padding */
p->m.width = sizeof(uintptr_t) * 2; /* Number is in hex format and byte is represented with 2 letters */

Expand Down

0 comments on commit 749d79c

Please sign in to comment.