mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dasdview/libdasd/zipl: Use util_sys_get_dev_addr() instead of u2s_getbusid()
Use the newer and more robust libutil provided function util_sys_get_dev_addr() to identify a device address for any former user of u2s_getbusid(). Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
+1
-2
@@ -7,8 +7,7 @@ ALL_CPPFLAGS += -I../include -I../boot \
|
||||
-D_FILE_OFFSET_BITS=64 $(NO_PIE_CFLAGS)
|
||||
ALL_LDFLAGS += -Wl,-z,noexecstack $(NO_PIE_LDFLAGS)
|
||||
|
||||
libs = $(rootdir)/libu2s/libu2s.a \
|
||||
$(rootdir)/libutil/libutil.a
|
||||
libs = $(rootdir)/libutil/libutil.a
|
||||
|
||||
objects = misc.o error.o scan.o job.o boot.o bootmap.o disk.o \
|
||||
install.o zipl.o $(rootdir)/zipl/boot/data.o
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@
|
||||
#include <syslog.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "lib/u2s.h"
|
||||
#include "lib/util_sys.h"
|
||||
|
||||
#include "boot.h"
|
||||
#include "bootmap.h"
|
||||
@@ -1132,7 +1132,7 @@ install_mvdump(char* const device[], struct job_target_data* target, int count,
|
||||
parm.param[i].num_heads = info[i]->geo.heads;
|
||||
parm.param[i].blocksize = info[i]->phy_block_size >> 8;
|
||||
parm.param[i].devno = info[i]->devno;
|
||||
if (u2s_getbusid(device[i], busid)) {
|
||||
if (util_sys_get_dev_addr(device[i], busid) != 0) {
|
||||
error_text("Could not find bus-ID for '%s'", device[i]);
|
||||
rc = -1;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user