X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fsystem%2Fopkg%2Fpatches%2F014-errors-to-stderr.patch;fp=package%2Fsystem%2Fopkg%2Fpatches%2F014-errors-to-stderr.patch;h=f0a93a871776d669683167988388bd1b3b281bf6;hp=0000000000000000000000000000000000000000;hb=4d953d3a481dd847524eae78c7aae00153bc7efd;hpb=801985e5286881dd578a19280b2a6c8e212a530d diff --git a/package/system/opkg/patches/014-errors-to-stderr.patch b/package/system/opkg/patches/014-errors-to-stderr.patch new file mode 100644 index 0000000000..f0a93a8717 --- /dev/null +++ b/package/system/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; + } + }