Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cats
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDC
cats
Commits
b31304c3
Commit
b31304c3
authored
2 years ago
by
Andreas Gattringer
Browse files
Options
Downloads
Patches
Plain Diff
add type hint to log_message
parent
a0195b0a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/logging/logging.c
+1
-0
1 addition, 0 deletions
src/logging/logging.c
src/logging/logging.h
+1
-0
1 addition, 0 deletions
src/logging/logging.h
with
2 additions
and
0 deletions
src/logging/logging.c
+
1
−
0
View file @
b31304c3
...
@@ -134,6 +134,7 @@ void log_msg(const char *msg, enum cats_log_level loglevel);
...
@@ -134,6 +134,7 @@ void log_msg(const char *msg, enum cats_log_level loglevel);
void
log_msg_simple
(
const
char
*
msg
,
enum
cats_log_level
loglevel
);
void
log_msg_simple
(
const
char
*
msg
,
enum
cats_log_level
loglevel
);
// logging wrapper function
// logging wrapper function
__attribute__
((
__format__
(
__printf__
,
2
,
3
)))
void
log_message
(
enum
cats_log_level
level
,
const
char
*
fmt
,
...)
void
log_message
(
enum
cats_log_level
level
,
const
char
*
fmt
,
...)
{
{
if
(
level
<
internal_current_log_level
)
return
;
if
(
level
<
internal_current_log_level
)
return
;
...
...
This diff is collapsed.
Click to expand it.
src/logging/logging.h
+
1
−
0
View file @
b31304c3
...
@@ -62,6 +62,7 @@ void logging_set_mpi_rank(int mpi_world_rank);
...
@@ -62,6 +62,7 @@ void logging_set_mpi_rank(int mpi_world_rank);
void
logging_set_module_name
(
const
char
*
name
);
void
logging_set_module_name
(
const
char
*
name
);
__attribute__
((
__format__
(
__printf__
,
2
,
3
)))
void
log_message
(
enum
cats_log_level
level
,
const
char
*
fmt
,
...);
void
log_message
(
enum
cats_log_level
level
,
const
char
*
fmt
,
...);
enum
cats_log_level
get_log_level
(
void
);
enum
cats_log_level
get_log_level
(
void
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment