mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-12 13:04:57 +00:00
example: make the priority uint8_t
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
33b582aad7
commit
ca9fbe0246
@ -29,7 +29,7 @@
|
||||
#define MY_TAG_TWO (1 << 1)
|
||||
#define MY_TAG_THREE (1 << 2)
|
||||
|
||||
static int32_t _log_priority = LOG_WARNING;
|
||||
static uint8_t _log_priority = LOG_WARNING;
|
||||
|
||||
static void
|
||||
func_one(void)
|
||||
@ -229,8 +229,8 @@ main(int32_t argc, char *argv[])
|
||||
{
|
||||
char * str = NULL;
|
||||
qb_log(LOG_ERR,
|
||||
"%s ------%s------------- %u?",
|
||||
NULL, str, 56);
|
||||
"%s-%d-%s-%u",
|
||||
NULL, 952, str, 56);
|
||||
}
|
||||
func_one();
|
||||
func_two();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user