Skip to content

Commit 367aa8c

Browse files
committed
API: libcrmcommon: Deprecate crm_time_log_alias()
Signed-off-by: Reid Wahl <[email protected]>
1 parent bf6ca08 commit 367aa8c

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

include/crm/common/iso8601.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ void crm_time_free(crm_time_t * dt);
5757
bool crm_time_is_defined(const crm_time_t *t);
5858
char *crm_time_as_string(const crm_time_t *dt, int flags);
5959

60-
void crm_time_log_alias(int log_level, const char *file, const char *function,
61-
int line, const char *prefix,
62-
const crm_time_t *date_time, int flags);
63-
6460
#define crm_time_log_date 0x001
6561
#define crm_time_log_timeofday 0x002
6662
#define crm_time_log_with_timezone 0x004

include/crm/common/iso8601_compat.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ int crm_time_get_isoweek(const crm_time_t *dt, uint32_t *y, uint32_t *w,
6161
#define crm_time_log(level, prefix, dt, flags) \
6262
crm_time_log_alias(level, __FILE__, __func__, __LINE__, prefix, dt, flags)
6363

64+
//! \deprecated Do not use
65+
void crm_time_log_alias(int log_level, const char *file, const char *function,
66+
int line, const char *prefix,
67+
const crm_time_t *date_time, int flags);
68+
6469
#ifdef __cplusplus
6570
}
6671
#endif

lib/common/iso8601.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,6 @@ pcmk__time_log_as(const char *file, const char *function, int line,
275275
free(date_s);
276276
}
277277

278-
void
279-
crm_time_log_alias(int log_level, const char *file, const char *function,
280-
int line, const char *prefix, const crm_time_t *date_time,
281-
int flags)
282-
{
283-
pcmk__time_log_as(file, function, line, pcmk__clip_log_level(log_level),
284-
prefix, date_time, flags);
285-
}
286-
287278
static void
288279
seconds_to_hms(int sec, uint32_t *h, uint32_t *m, uint32_t *s)
289280
{
@@ -2329,5 +2320,14 @@ crm_time_get_isoweek(const crm_time_t *dt, uint32_t *y, uint32_t *w,
23292320
return TRUE;
23302321
}
23312322

2323+
void
2324+
crm_time_log_alias(int log_level, const char *file, const char *function,
2325+
int line, const char *prefix, const crm_time_t *date_time,
2326+
int flags)
2327+
{
2328+
pcmk__time_log_as(file, function, line, pcmk__clip_log_level(log_level),
2329+
prefix, date_time, flags);
2330+
}
2331+
23322332
// LCOV_EXCL_STOP
23332333
// End deprecated API

0 commit comments

Comments
 (0)