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
promise
OpenXG-RAN
Commits
088db3cf
Commit
088db3cf
authored
8 years ago
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new function PUTX2 to display an int as an 8 bits hexadecimal
parent
bbcfd004
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
common/utils/T/tracer/utils.c
common/utils/T/tracer/utils.c
+7
-0
common/utils/T/tracer/utils.h
common/utils/T/tracer/utils.h
+1
-0
No files found.
common/utils/T/tracer/utils.c
View file @
088db3cf
...
...
@@ -190,6 +190,13 @@ void PUTI(OBUF *o, int i)
PUTS
(
o
,
s
);
}
void
PUTX2
(
OBUF
*
o
,
int
i
)
{
char
s
[
64
];
sprintf
(
s
,
"%2.2x"
,
i
);
PUTS
(
o
,
s
);
}
void
PUTUL
(
OBUF
*
o
,
unsigned
long
l
)
{
char
s
[
128
];
...
...
This diff is collapsed.
Click to expand it.
common/utils/T/tracer/utils.h
View file @
088db3cf
...
...
@@ -44,6 +44,7 @@ void PUTC(OBUF *o, char c);
void
PUTS
(
OBUF
*
o
,
char
*
s
);
void
PUTS_CLEAN
(
OBUF
*
o
,
char
*
s
);
void
PUTI
(
OBUF
*
o
,
int
i
);
void
PUTX2
(
OBUF
*
o
,
int
i
);
void
PUTUL
(
OBUF
*
o
,
unsigned
long
i
);
#endif
/* _UTILS_H_ */
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