Use %p everywhere with printf() #9

Merged
asleepymoon 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.
asleepymoon added the
enhancement
label 2022-10-08 16:12:55 +00:00
asleepymoon self-assigned this 2022-10-08 16:12:55 +00:00
asleepymoon added 1 commit 2022-10-08 16:12:55 +00:00
asleepymoon added 1 commit 2022-10-08 16:15:14 +00:00
asleepymoon added 1 commit 2022-10-08 16:17:01 +00:00
asleepymoon added 1 commit 2022-10-08 16:21:08 +00:00
asleepymoon added 1 commit 2022-10-08 16:24:10 +00:00
asleepymoon 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.
asleepymoon changed title from WIP: Use %p everywhere with printf() to Use %p everywhere with printf() 2022-10-08 16:27:18 +00:00
asleepymoon merged commit 4b74c14f1b into main 2022-10-08 16:27:37 +00:00
asleepymoon deleted branch printf_pointers 2022-10-08 16:27:37 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: asleepymoon/Luna#9
No description provided.