discover: Fix raw string argument to talloc_asprintf_append
authorJeremy Kerr <jk@ozlabs.org>
Fri, 26 Jun 2015 03:41:46 +0000 (11:41 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 26 Jun 2015 03:41:46 +0000 (11:41 +0800)
commit757d3ed67988099a279fa4f05f07ace8bb3f7596
treede8d4a0f40089b02ae8b1e491f2684a173c4d140
parent37b4861cb01bf6bd9da41aa1b311a87b0d26fc25
discover: Fix raw string argument to talloc_asprintf_append

Current builds give a warning:

  ../discover/platform-powerpc.c: In function ‘update_bootdev_config’:
  ../discover/platform-powerpc.c:667:4: warning: format not a string
  literal and no format arguments [-Wformat-security]
      tmp = val = talloc_asprintf_append(val, boot_str);
          ^

This change uses "%s" for the format string.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/platform-powerpc.c