1.1 --- a/ucx/utils.h Wed Sep 07 12:26:01 2016 +0200 1.2 +++ b/ucx/utils.h Wed Sep 07 12:41:30 2016 +0200 1.3 @@ -243,10 +243,6 @@ 1.4 */ 1.5 sstr_t ucx_asprintf(UcxAllocator *allocator, const char *fmt, ...); 1.6 1.7 -/** Shortcut for ucx_asprintf() with default allocator. */ 1.8 -#define ucx_sprintf(fmt, ...) \ 1.9 - ucx_asprintf(ucx_default_allocator(), fmt, __VA_ARGS__) 1.10 - 1.11 /** 1.12 * <code>va_list</code> version of ucx_asprintf(). 1.13 * 1.14 @@ -258,6 +254,10 @@ 1.15 */ 1.16 sstr_t ucx_vasprintf(UcxAllocator *allocator, const char *fmt, va_list ap); 1.17 1.18 +/** Shortcut for ucx_asprintf() with default allocator. */ 1.19 +#define ucx_sprintf(...) \ 1.20 + ucx_asprintf(ucx_default_allocator(), __VA_ARGS__) 1.21 + 1.22 /** 1.23 * A <code>printf()</code> like function which writes the output to an 1.24 * UcxBuffer.