RTEMS | cpukit/libmisc/shell/main_mdump.c: Use uintptr_t to print address (!1495)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Sep 17 21:07:25 UTC 2026



Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1495

Project:Branches: joel/rtems:use-uintptr-in-mdump-print to rtems/rtos/rtems:main
Author: Joel Sherrill
Assignee: Joel Sherrill

## Summary

cpukit/libmisc/shell/main_mdump.c: Use uintptr_t to print address

The behavior of the %p printf() specifier is implementation
dependent. The behavior varies on RTEMS between printf() and
printk(). This change prints an address as a uintptr_t to
ensure formatting is consistent. It also adjusts the output
width based on target architecture pointer size.

Updates #163


## Generative AI

None

<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1495
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-comwt1zfeo68e4y009ldep593-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260917/aafd2d04/attachment.htm>


More information about the bugs mailing list