Skip to content

Commit e418295

Browse files
committed
format_timespan: remove print definitions
To be consistent with the rest of casync's source. Signed-off-by: Arnaud Rebillout <[email protected]>
1 parent 54b2f89 commit e418295

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/time-util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ char *format_timespan(char *buf, size_t l, uint64_t t, uint64_t accuracy) {
7777

7878
if (j > 0) {
7979
k = snprintf(p, l,
80-
"%s"USEC_FMT".%0*"PRI_USEC"%s",
80+
"%s%" PRIu64 ".%0*" PRIu64 "%s",
8181
p > buf ? " " : "",
8282
a,
8383
j,
@@ -92,7 +92,7 @@ char *format_timespan(char *buf, size_t l, uint64_t t, uint64_t accuracy) {
9292
/* No? Then let's show it normally */
9393
if (!done) {
9494
k = snprintf(p, l,
95-
"%s"USEC_FMT"%s",
95+
"%s%" PRIu64 "%s",
9696
p > buf ? " " : "",
9797
a,
9898
table[i].suffix);

src/time-util.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
#ifndef footimeutilfoo
44
#define footimeutilfoo
55

6-
#define PRI_NSEC PRIu64
7-
#define PRI_USEC PRIu64
8-
#define NSEC_FMT "%" PRI_NSEC
9-
#define USEC_FMT "%" PRI_USEC
10-
116
#define USEC_INFINITY ((uint64_t) -1)
127
#define NSEC_INFINITY ((uint64_t) -1)
138

0 commit comments

Comments
 (0)