fix qdev_print_devinfo()
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 3 Aug 2009 09:26:48 +0000 (11:26 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 Aug 2009 18:11:27 +0000 (13:11 -0500)
commitade0a8ab39248c37e5a5bba0b89f4b2507c1e0d1
tree0350148ddbd962a9eeb68097dae6de0da262a9e8
parent6cb4d69cfe5528b8b01db3a3fe3712315a6e8278
fix qdev_print_devinfo()

snprintf returns number of bytes needed for the output, not the number
of bytes actually written.  Thus the math is wrong ...

Spotted by Markus Armbruster.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
hw/qdev.c