Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
8ad154c0
Commit
8ad154c0
authored
Nov 21, 2002
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(print_hex): Add line breaks.
Rev: src/nettle/testsuite/testutils.c:1.20
parent
6003487b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
testsuite/testutils.c
testsuite/testutils.c
+12
-2
No files found.
testsuite/testutils.c
View file @
8ad154c0
...
...
@@ -115,10 +115,20 @@ print_hex(unsigned length, uint8_t *data)
for
(
i
=
0
;
i
<
length
;
i
++
)
{
if
(
!
(
i
%
8
))
printf
(
" "
);
switch
(
i
%
16
)
{
default:
break
;
case
0
:
printf
(
"
\n
"
);
break
;
case
8
:
printf
(
" "
);
break
;
}
printf
(
"%02x"
,
data
[
i
]);
}
printf
(
"
\n
"
);
}
int
verbose
=
0
;
...
...
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