From 1fd328fb78d4ecdbfbd4912d5ea4552f22757017 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 24 Nov 2010 14:54:26 +0000 Subject: opkg: write error messages to stdout SVN-Revision: 24133 --- package/opkg/patches/014-errors-to-stderr.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/opkg/patches/014-errors-to-stderr.patch (limited to 'package/opkg/patches/014-errors-to-stderr.patch') diff --git a/package/opkg/patches/014-errors-to-stderr.patch b/package/opkg/patches/014-errors-to-stderr.patch new file mode 100644 index 0000000..f0a93a8 --- /dev/null +++ b/package/opkg/patches/014-errors-to-stderr.patch @@ -0,0 +1,15 @@ +--- a/libopkg/opkg_message.c ++++ b/libopkg/opkg_message.c +@@ -64,10 +64,10 @@ print_error_list(void) + struct errlist *err = error_list_head; + + if (err) { +- printf("Collected errors:\n"); ++ fprintf(stderr, "Collected errors:\n"); + /* Here we print the errors collected and free the list */ + while (err != NULL) { +- printf(" * %s", err->errmsg); ++ fprintf(stderr, " * %s", err->errmsg); + err = err->next; + } + } -- cgit v1.1