Skip to content

Commit

Permalink
[squash] livepatch/klp-convert: add missing symbol name to warning
Browse files Browse the repository at this point in the history
Note: squash with ("livepatch: Add klp-convert tool")

Add the rela->sym->name to the "Unable to find missing symbol" warning
message.

[joe: add missing symbol name to warning msg to help debugging]

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
  • Loading branch information
joe-lawrence committed Mar 18, 2019
1 parent ad76819 commit 7a41a8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/livepatch/klp-convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,8 @@ int main(int argc, const char **argv)
continue;

if (!find_missing_position(rela->sym, &sp)) {
WARN("Unable to find missing symbol");
WARN("Unable to find missing symbol: %s",
rela->sym->name);
return -1;
}
if (!convert_rela(sec, rela, &sp, klp_elf)) {
Expand Down

0 comments on commit 7a41a8f

Please sign in to comment.