Use %p everywhere with printf() #9

Merged
apio merged 6 commits from printf_pointers into main 2022-10-08 16:27:37 +00:00
Owner

This is going to be a big pull...

Now that we have %p in printf, we should use it everywhere instead of %lx and (unsigned long)ptr.

This is going to be a big pull... Now that we have %p in printf, we should use it everywhere instead of %lx and (unsigned long)ptr.
apio added the
enhancement
label 2022-10-08 16:12:55 +00:00
apio self-assigned this 2022-10-08 16:12:55 +00:00
apio added 1 commit 2022-10-08 16:12:55 +00:00
apio added 1 commit 2022-10-08 16:15:14 +00:00
apio added 1 commit 2022-10-08 16:17:01 +00:00
apio added 1 commit 2022-10-08 16:21:08 +00:00
apio added 1 commit 2022-10-08 16:24:10 +00:00
apio added 1 commit 2022-10-08 16:27:11 +00:00
Apparently, %p only accepts void*, and not any pointer type. Still better than casting a pointer to uint64_t.
apio changed title from WIP: Use %p everywhere with printf() to Use %p everywhere with printf() 2022-10-08 16:27:18 +00:00
apio merged commit 4b74c14f1b into main 2022-10-08 16:27:37 +00:00
apio deleted branch printf_pointers 2022-10-08 16:27:37 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: apio/Luna#9
No description provided.