packages: clean up the package folder
[openwrt.git] / package / system / opkg / patches / 014-errors-to-stderr.patch
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 (file)
index 0000000..f0a93a8
--- /dev/null
@@ -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;
+               }
+       }