014-errors-to-stderr.patch 428 B

123456789101112131415
  1. --- a/libopkg/opkg_message.c
  2. +++ b/libopkg/opkg_message.c
  3. @@ -64,10 +64,10 @@ print_error_list(void)
  4. struct errlist *err = error_list_head;
  5. if (err) {
  6. - printf("Collected errors:\n");
  7. + fprintf(stderr, "Collected errors:\n");
  8. /* Here we print the errors collected and free the list */
  9. while (err != NULL) {
  10. - printf(" * %s", err->errmsg);
  11. + fprintf(stderr, " * %s", err->errmsg);
  12. err = err->next;
  13. }
  14. }