mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
examples: Fix format string unearthed during macos build
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@ -70,6 +70,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
@ -231,7 +232,7 @@ static void _logging_callback(int priority, const char *function,
|
|||||||
|
|
||||||
milliseconds = _current_timestamp();
|
milliseconds = _current_timestamp();
|
||||||
|
|
||||||
fprintf(fp, "[%s.%jd, %d] %s: %s\n", buf, milliseconds, priority,
|
fprintf(fp, "[%s.%" PRId64 ", %d] %s: %s\n", buf, milliseconds, priority,
|
||||||
function, buffer);
|
function, buffer);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user