]> git.proxmox.com Git - pve-cluster.git/commit
cleanup format strings for cfs_* messages
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 May 2016 13:55:53 +0000 (15:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Jun 2016 15:01:39 +0000 (17:01 +0200)
commite5a5a3ea0f6c04145d037633f8ce3006a5035ddc
tree917fa14b83a01562b11f43113523e4af9c7e62d0
parent22c1bf565506e6e41b9a11751c39b90f0fb3115c
cleanup format strings for cfs_* messages

This does not change semantics on our current target platform
(x86_64) but is needed for porting it to other platforms.

The GCC on ARM, for example, complains about them.

For all:
* size_t use "%z*"
* off_t use "%j*"
* uint64_t use "PRI*64"

where * may be one of (X,d,u).

Also cast guint64 to uint64_t to allow use of a general, portable
format which also supports hex output as the GUINT64_FORMAT allows
decimal output only.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Cc: mir@datanom.net
data/src/cfs-plug.c
data/src/database.c
data/src/dcdb.c
data/src/dfsm.c
data/src/logger.c
data/src/memdb.c
data/src/pmxcfs.c
data/src/status.c