OSDN Git Service
(root)
/
android-x86
/
external-efivar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d87113
)
efiboot: parse_scsi_link(): fix the offset searching for the port
author
Peter Jones
<pjones@redhat.com>
Thu, 21 Jun 2018 18:23:40 +0000
(14:23 -0400)
committer
Peter Jones
<pjones@redhat.com>
Thu, 21 Jun 2018 19:36:33 +0000
(15:36 -0400)
Signed-off-by: Peter Jones <pjones@redhat.com>
src/linux-scsi.c
patch
|
blob
|
history
diff --git
a/src/linux-scsi.c
b/src/linux-scsi.c
index
80c2fb7
..
2e4f710
100644
(file)
--- a/
src/linux-scsi.c
+++ b/
src/linux-scsi.c
@@
-92,7
+92,7
@@
parse_scsi_link(const char *current, uint32_t *scsi_host,
pos0 = 0;
debug("searching for port-4:0 or port-4:0:0");
- rc = sscanf(current, "port-%d:%d%n:%d%n", &tosser0,
+ rc = sscanf(current
+sz
, "port-%d:%d%n:%d%n", &tosser0,
&tosser1, &pos0, &tosser2, &pos1);
debug("current:\"%s\" rc:%d pos0:%d pos1:%d\n", current+sz, rc, pos0, pos1);
arrow(LOG_DEBUG, spaces, 9, pos0, rc, 2);