Changeset ed152a0c in rtems


Ignore:
Timestamp:
Mar 16, 2015, 4:49:47 PM (4 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
ce4e691
Parents:
1ff449c
Message:

capture: fix warnings in print

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/capture/capture_support.c

    r1ff449c red152a0c  
    6060  uint32_t seconds;
    6161  uint32_t nanosecs;
    62 
    63   seconds  = uptime / 1000000000LLU;
    64   minutes  = seconds / 60;
     62  uint64_t up_secs;
     63
     64  up_secs  = uptime / 1000000000LLU;
     65  minutes  = up_secs / 60;
    6566  hours    = minutes / 60;
    6667  minutes  = minutes % 60;
    67   seconds  = seconds % 60;
     68  seconds  = up_secs % 60;
    6869  nanosecs = uptime % 1000000000;
    6970
    70   fprintf (stdout, "%5lu:%02lu:%02lu.%09lu", hours, minutes, seconds, nanosecs);
     71  fprintf (stdout, "%5" PRIu32 ":%02" PRIu32 ":%02" PRIu32".%09" PRIu32,
     72                  hours, minutes, seconds, nanosecs);
    7173}
    7274
Note: See TracChangeset for help on using the changeset viewer.