]> git.proxmox.com Git - qemu.git/commit
smbios: Fix -smbios type=0, release=... for big endian hosts
authorMarkus Armbruster <armbru@redhat.com>
Fri, 7 Jun 2013 13:00:35 +0000 (15:00 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 14 Jun 2013 13:58:58 +0000 (08:58 -0500)
commit527cd96f15348f4454d5bb71f69aaeb95461c90e
treee24149197179e4be201ebb3fbcb115ecc80c004d
parentebc85e3f724d17530e74df665d1a30fb9b0041b5
smbios: Fix -smbios type=0, release=... for big endian hosts

Classic endianness bug due to careless dirty coding: assuming reading
a byte from an int variable gets the least significant byte.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laszlo "ever the optimist" Ersek <lersek@redhat.com>
Message-id: 1370610036-10577-6-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/i386/smbios.c