tyop.
use %#0nx
Actually, use 0x%nX. That gets me 0xAB, which is saner, and prepends 0x to 0 as well.