Display portion of the variable

In reply to megamind:

If you can guarantee the upper bits are all zero, then %8x would also work. Remember that %8x is interpreted to be the minimum field width. If any of those upper bits are non-zero, they would be displayed.