From 36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 28 May 2010 09:27:40 +0100 Subject: libelf: Tidy up logging and remove dependency on stdio. libelf now permits callers to specify logging callback functions, rather than a FILE*. libelf's non-Xen callers are all libxc users, so the stdio dependency and the default logging callback function (which calls vfprintf) is now in libxc. Xen's use of libxc is unaffected in this patch. Signed-off-by: Ian Jackson --- tools/xcutils/readnotes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/xcutils') diff --git a/tools/xcutils/readnotes.c b/tools/xcutils/readnotes.c index b770f56fe9..270c48b017 100644 --- a/tools/xcutils/readnotes.c +++ b/tools/xcutils/readnotes.c @@ -170,7 +170,7 @@ int main(int argc, char **argv) fprintf(stderr, "File %s is not an ELF image\n", f); return 1; } - elf_set_logfile(&elf, stderr, 0); + xc_elf_set_logfile(&elf, stderr, 0); count = elf_phdr_count(&elf); for ( h=0; h < count; h++) -- cgit v1.2.3