Fix print formats to be compatible with newer library versions

Change-Id: I91d9d8d155cd66185799673549031b4afbe973f8