mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 13:25:35 +00:00
log: Use unsigned int for verbosity
Negative verbosity levels don't make sense.
This commit is contained in:
parent
cfdc7de9ed
commit
68c1a3f21e
2 changed files with 7 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
|||
#define DEFAULT_DOMAIN_PREFIX "Calls"
|
||||
|
||||
static char *domains;
|
||||
static int verbosity;
|
||||
static guint verbosity;
|
||||
static gboolean any_domain;
|
||||
static gboolean stderr_is_journal;
|
||||
|
||||
|
@ -273,7 +273,7 @@ calls_log_increase_verbosity (void)
|
|||
verbosity++;
|
||||
}
|
||||
|
||||
int
|
||||
guint
|
||||
calls_log_get_verbosity (void)
|
||||
{
|
||||
return verbosity;
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef CALLS_LOG_LEVEL_TRACE
|
||||
# define CALLS_LOG_LEVEL_TRACE ((GLogLevelFlags)(1 << G_LOG_LEVEL_USER_SHIFT))
|
||||
# define CALLS_LOG_DETAILED ((GLogLevelFlags)(8 << G_LOG_LEVEL_USER_SHIFT))
|
||||
|
@ -34,6 +36,6 @@
|
|||
__FILE__, G_STRINGIFY (__LINE__), \
|
||||
G_STRFUNC, __VA_ARGS__)
|
||||
|
||||
void calls_log_init (void);
|
||||
void calls_log_increase_verbosity (void);
|
||||
int calls_log_get_verbosity (void);
|
||||
void calls_log_init (void);
|
||||
void calls_log_increase_verbosity (void);
|
||||
guint calls_log_get_verbosity (void);
|
||||
|
|
Loading…
Reference in a new issue