Commit 1c0ba6b5 authored by Roland Fischer's avatar Roland Fischer Committed by npzacs
Browse files

Correct debug-log in _find_config_entry

'discid' sent to BD_DEBUG has not been converted to string before
and resulted in a broken output - corrected.
parent c6dc792e
......@@ -710,6 +710,7 @@ static void _find_config_entry(AACS *aacs, title_entry_list *ce,
uint8_t *mk, uint8_t *vuk)
{
char str[48];
char str2[48];
aacs->uks = NULL;
aacs->num_uks = 0;
......@@ -731,7 +732,7 @@ static void _find_config_entry(AACS *aacs, title_entry_list *ce,
hexstring_to_hex_array(mk, 16, ce->entry.mek);
BD_DEBUG(DBG_AACS, "Found media key for %s: %s\n",
ce->entry.discid, str_print_hex(str, mk, 16));
str_print_hex(str2, ce->entry.discid, 20), str_print_hex(str, mk, 16));
}
if (ce->entry.vid) {
......@@ -739,14 +740,14 @@ static void _find_config_entry(AACS *aacs, title_entry_list *ce,
ce->entry.vid);
BD_DEBUG(DBG_AACS, "Found volume id for %s: %s\n",
ce->entry.discid, str_print_hex(str, aacs->vid, 16));
str_print_hex(str2, ce->entry.discid, 20), str_print_hex(str, aacs->vid, 16));
}
if (ce->entry.vuk) {
hexstring_to_hex_array(vuk, 16, ce->entry.vuk);
BD_DEBUG(DBG_AACS, "Found volume unique key for %s: %s\n",
ce->entry.discid, str_print_hex(str, vuk, 16));
str_print_hex(str2, ce->entry.discid, 20), str_print_hex(str, vuk, 16));
}
if (ce->entry.uk) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment