log written data in hex too for easier debugging