Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
2ea9618a
Commit
2ea9618a
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit function name string length for logging output
parent
8aaede90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/utils/LOG/log.c
common/utils/LOG/log.c
+2
-2
No files found.
common/utils/LOG/log.c
View file @
2ea9618a
...
@@ -542,11 +542,11 @@ static inline int log_header(log_component_t *c,
...
@@ -542,11 +542,11 @@ static inline int log_header(log_component_t *c,
char
l
[
32
];
char
l
[
32
];
if
(
flag
&
FLAG_FILE_LINE
&&
flag
&
FLAG_FUNCT
)
if
(
flag
&
FLAG_FILE_LINE
&&
flag
&
FLAG_FUNCT
)
snprintf
(
l
,
sizeof
l
,
"(%s:%d) "
,
func
,
line
);
snprintf
(
l
,
sizeof
l
,
"(%
.23
s:%d) "
,
func
,
line
);
else
if
(
flag
&
FLAG_FILE_LINE
)
else
if
(
flag
&
FLAG_FILE_LINE
)
snprintf
(
l
,
sizeof
l
,
"(%d) "
,
line
);
snprintf
(
l
,
sizeof
l
,
"(%d) "
,
line
);
else
if
(
flag
&
FLAG_FUNCT
)
else
if
(
flag
&
FLAG_FUNCT
)
snprintf
(
l
,
sizeof
l
,
"(%s) "
,
func
);
snprintf
(
l
,
sizeof
l
,
"(%
.28
s) "
,
func
);
else
else
l
[
0
]
=
0
;
l
[
0
]
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment