Changeset 66da4844 in rtems


Ignore:
Timestamp:
Nov 18, 2014, 9:09:30 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
1227858
Parents:
7840b66
git-author:
Sebastian Huber <sebastian.huber@…> (11/18/14 09:09:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/20/14 09:30:25)
Message:

shell: Print to stderr in TIME command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/main_time.c

    r7840b66 r66da4844  
    5050  sc = rtems_clock_get_uptime(&start);
    5151  if (sc != RTEMS_SUCCESSFUL)
    52     printf("error: cannot read time\n");
     52    fprintf(stderr, "error: cannot read time\n");
    5353
    5454  if (argc) {
     
    6565  sc = rtems_clock_get_uptime(&end);
    6666  if (sc != RTEMS_SUCCESSFUL)
    67     printf("error: cannot read time\n");
     67    fprintf(stderr, "error: cannot read time\n");
    6868
    6969  period.tv_sec = end.tv_sec - start.tv_sec;
     
    7575  }
    7676
    77   printf("time: %" PRIdtime_t ":%02" PRIdtime_t ":%02" PRIdtime_t ".%03li\n",
     77  fprintf(stderr, "time: %" PRIdtime_t ":%02" PRIdtime_t ":%02" PRIdtime_t ".%03li\n",
    7878         period.tv_sec / 3600,
    7979         period.tv_sec / 60, period.tv_sec % 60,
Note: See TracChangeset for help on using the changeset viewer.