]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/timesync/timesyncd-manager.c
timesync/timesyncd-manager: fix format-specifier issues
authorMatija Skala <mskala@gmx.com>
Fri, 19 May 2017 12:36:12 +0000 (14:36 +0200)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Fri, 19 May 2017 12:38:25 +0000 (14:38 +0200)
commit3bd7ef833caae7431a9c50450ce7b303234d45eb
tree1e143e35ea973902677798838400350631f82ab7
parentcc9211b030c1fa7dd8d0e14df1de3e2aba32e50c
timesync/timesyncd-manager: fix format-specifier issues

timex::time::tv_usec and timex::freq can have different sizes
depending on the host architecture. On x32 in particular,
it is 8 bytes long while the long int type is only 4 bytes
long. Hence, using li as a format specifier will trigger
a format error. Thus, introduce a new format specifier
PRI_TIMEX which is defined as PRIi64 on x32 and li
everywhere else.
src/basic/format-util.h
src/timesync/timesyncd-manager.c