ppc4xx_i2c: Clean up and improve error logging
commit42a907e83921ff2c4f5e6ca9fa6aa6791b43a73f
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 6 Jun 2018 13:31:48 +0000 (6 15:31 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Jun 2018 00:44:36 +0000 (12 10:44 +1000)
treef15e2dd923a54d21eb2a0e427b0e82a55e890cc5
parentc8fd8373e42821984400382cd91b8bf4e7c14e3b
ppc4xx_i2c: Clean up and improve error logging

Make it more readable by converting register indexes to decimal
(avoids lot of superfluous 0x0) and distinguish errors caused by
accessing non-existent vs. unimplemented registers.
No functional change.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/i2c/ppc4xx_i2c.c