spapr_pci: set device node unit address as hex
commit9b7d9284c3b114112a7759ce0a885df0767fe8d9
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Thu, 2 Jul 2015 06:23:10 +0000 (2 16:23 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 7 Jul 2015 15:44:51 +0000 (7 17:44 +0200)
treedfcf977d852479e176a4c9ac9408aaa277752a16
parent4a7c34741584e91aa838a9e45b8ec5cdc65a343b
spapr_pci: set device node unit address as hex

Device node names should encode the unit address as hex, while the
code was encodind it as integers.

Also, use FDT_NAME_MAX macro for allocating and composing the name.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_pci.c