aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xcutils/readnotes.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-28 09:27:40 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-28 09:27:40 +0100
commit36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8 (patch)
treef6eb1345d9d81843e0213b31d30f672895d8fdac /tools/xcutils/readnotes.c
parent96830282274a9f6a7aafd506976a3639b6f80836 (diff)
downloadxen-36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8.tar.gz
xen-36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8.tar.bz2
xen-36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8.zip
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 <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/xcutils/readnotes.c')
-rw-r--r--tools/xcutils/readnotes.c2
1 files changed, 1 insertions, 1 deletions
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++)