AFAIK, `%p` does not output `0x`, and you don't need this prefix. 
And I don't think it's safe to assume `only 6 bytes are used`.