Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Joshua Root
libaacs
Commits
1c921ea2
Commit
1c921ea2
authored
May 02, 2012
by
npzacs
Browse files
Fixed printing hex strings in aacs_info
parent
69ed4e47
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/examples/aacs_info.c
View file @
1c921ea2
...
...
@@ -32,9 +32,9 @@ static const char *_hex2str(const uint8_t *s, unsigned n)
str
=
realloc
(
str
,
n
*
2
+
1
);
for
(
ii
=
0
;
ii
<
n
;
ii
++
)
{
str
[
2
*
ii
]
=
hex
[
s
[
ii
]
>>
4
];
str
[
2
*
ii
+
1
]
=
hex
[
s
[
ii
]
&
0x0
7
];
str
[
2
*
ii
+
1
]
=
hex
[
s
[
ii
]
&
0x0
f
];
}
str
[
ii
]
=
0
;
str
[
2
*
ii
]
=
0
;
return
str
;
}
...
...
@@ -88,7 +88,7 @@ int main (int argc, char **argv)
const
uint8_t
*
vid
=
aacs_get_vid
(
aacs
);
const
uint8_t
*
id
=
aacs_get_disc_id
(
aacs
);
printf
(
"Disc ID: %s
\n
"
,
id
?
_hex2str
(
id
,
20
)
:
"???"
);
printf
(
"VID : %s
\n
"
,
vid
?
_hex2str
(
vid
,
20
)
:
"???"
);
printf
(
"VID : %s
\n
"
,
vid
?
_hex2str
(
vid
,
16
)
:
"???"
);
printf
(
"MKBv : %d
\n
"
,
aacs_get_mkb_version
(
aacs
));
aacs_close
(
aacs
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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