Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4688fab8 in mainline


Ignore:
Timestamp:
2010-11-24T20:12:52Z (11 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master
Children:
8ad673a
Parents:
a7e7716
Message:

redir: display error messages on stderr instead of stdout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/redir/redir.c

    ra7e7716 r4688fab8  
    4949static void usage(void)
    5050{
    51         printf("Usage: %s [-i <stdin>] [-o <stdout>] [-e <stderr>] -- <cmd> [args ...]\n",
     51        fprintf(stderr, "Usage: %s [-i <stdin>] [-o <stdout>] [-e <stderr>] -- <cmd> [args ...]\n",
    5252            NAME);
    5353}
     
    8383        args = (const char **) calloc(argc + 1, sizeof(char *));
    8484        if (!args) {
    85                 printf("No memory available\n");
     85                fprintf(stderr, "No memory available\n");
    8686                return 0;
    8787        }
     
    9898       
    9999        if (rc != EOK) {
    100                 printf("%s: Error spawning %s (%s)\n", NAME, argv[0],
     100                fprintf(stderr, "%s: Error spawning %s (%s)\n", NAME, argv[0],
    101101                    str_error(rc));
    102102                return 0;
Note: See TracChangeset for help on using the changeset viewer.