Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
jlib
Commits
ece8f1a6
Commit
ece8f1a6
authored
7 years ago
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format %d to %zu etc...
parent
b27911af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
log2.h
log2.h
+4
-4
No files found.
log2.h
View file @
ece8f1a6
...
...
@@ -90,11 +90,11 @@ inline void dump_hex(const void* buff, size_t buff_len)
char
output
[
4096
]
=
{
0
};
char
c
[
128
]
=
{
0
};
std
::
sprintf
(
c
,
"dump_hex: buff 0x%p, buff_len %
d
\n
"
,
buff
,
buff_len
);
std
::
sprintf
(
c
,
"dump_hex: buff 0x%p, buff_len %
zu
\n
"
,
buff
,
buff_len
);
for
(
size_t
i
=
0
;
i
<
16
;
i
++
)
{
char
tmp
[
4
];
std
::
sprintf
(
tmp
,
"%02X "
,
i
);
std
::
sprintf
(
tmp
,
"%02
z
X "
,
i
);
std
::
strcat
(
c
,
tmp
);
}
...
...
@@ -121,11 +121,11 @@ inline void dump_asc(const void* buff, size_t buff_len)
char
output
[
4096
]
=
{
0
};
char
c
[
128
]
=
{
0
};
std
::
sprintf
(
c
,
"dump_asc: buff 0x%p, buff_len %
d
\n
"
,
buff
,
buff_len
);
std
::
sprintf
(
c
,
"dump_asc: buff 0x%p, buff_len %
zu
\n
"
,
buff
,
buff_len
);
for
(
size_t
i
=
0
;
i
<
16
;
i
++
)
{
char
tmp
[
4
];
std
::
sprintf
(
tmp
,
"%02X "
,
i
);
std
::
sprintf
(
tmp
,
"%02
z
X "
,
i
);
std
::
strcat
(
c
,
tmp
);
}
...
...
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