Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
088db3cf
Commit
088db3cf
authored
Jun 22, 2016
by
Cedric Roux
Browse files
new function PUTX2 to display an int as an 8 bits hexadecimal
parent
bbcfd004
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
];
...
...
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_ */
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