Ohne Code kaum was zuu machen, außer dir zu sagen, dass du wohl irgend eine Zeichenfolge per Format versuchst zu formatieren und das Argument nicht zum Formatbeschreiber passt.

Zitat von
Hilfe:
p: Pointer. The argument must be a pointer value. The value is converted to an 8 character string that represents the pointers value in hexadecimal.
Bei dir ist es offensichtlich kein Pointer.