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

Joel Sherrill (@joel) gitlab at rtems.org
Fri Sep 18 18:04:53 UTC 2026



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

Project:Branches: joel/rtems:use-uintptr-in-mdump-print to rtems/rtos/rtems:main
Author: 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 rtems/docs/rtems-docs#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/1496
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-bvi6wj136bplkxwirqzray3su-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/20260918/6c4f1901/attachment.htm>


More information about the bugs mailing list