summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorjakub <jakub>1999-10-08 04:13:54 +0000
committerjakub <jakub>1999-10-08 04:13:54 +0000
commit7eaaf593f2daebcb2ffa72267ac8c0738542bb23 (patch)
treedce80866ce41e4fda6ac8fef570a607dca8aaa41 /isys
parent2bc4e56ae1a773e0c2e2d7125c5436884fe1503e (diff)
downloadanaconda-7eaaf593f2daebcb2ffa72267ac8c0738542bb23.tar.gz
anaconda-7eaaf593f2daebcb2ffa72267ac8c0738542bb23.tar.xz
anaconda-7eaaf593f2daebcb2ffa72267ac8c0738542bb23.zip
%x in addresses instead of %d.
Diffstat (limited to 'isys')
-rw-r--r--isys/silo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/isys/silo.c b/isys/silo.c
index 888de808d..c6cc99d8e 100644
--- a/isys/silo.c
+++ b/isys/silo.c
@@ -265,9 +265,9 @@ scan_walk_callback(int node) {
if (!nextnode)
continue;
if (prop[0] == 'a')
- sprintf (prop, "/ata@%d,0/cmdk@%d,0", hd[disk].hi, hd[disk].lo);
+ sprintf (prop, "/ata@%x,0/cmdk@%x,0", hd[disk].hi, hd[disk].lo);
else
- sprintf (prop, "/disk@%d,0", hd[disk].hi * 2 + hd[disk].lo);
+ sprintf (prop, "/disk@%x,0", hd[disk].hi * 2 + hd[disk].lo);
break;
case SDSK_TYPE_SD:
for (nextnode = prom_getchild(node); nextnode; nextnode = prom_getsibling(nextnode)) {
@@ -289,19 +289,19 @@ scan_walk_callback(int node) {
strcpy (name, "sd");
if (!prop)
prop = ((struct openpromio *)buf)->oprom_array;
- sprintf (prop, "/%s@%d,%d", name, hd[disk].mid, hd[disk].lo);
+ sprintf (prop, "/%s@%x,%x", name, hd[disk].mid, hd[disk].lo);
} else
sprintf (prop, "sd(%d,%d,", v0ctrl, hd[disk].mid);
break;
case SDSK_TYPE_PLN:
prop = ((struct openpromio *)buf)->oprom_array;
- sprintf (prop, "/SUNW,pln@%x,%x/SUNW,ssd@%d,%d",
+ sprintf (prop, "/SUNW,pln@%x,%x/SUNW,ssd@%x,%x",
hd[disk].lo & 0xf0000000, hd[disk].lo & 0xffffff,
hd[disk].hi, hd[disk].mid);
break;
case SDSK_TYPE_FC:
prop = ((struct openpromio *)buf)->oprom_array;
- sprintf (prop, "/sf@0,0/ssd@w%08x%08x,%d", hd[disk].hi, hd[disk].mid, hd[disk].lo);
+ sprintf (prop, "/sf@0,0/ssd@w%08x%08x,%x", hd[disk].hi, hd[disk].mid, hd[disk].lo);
break;
default:
continue;