Commit e1aa97a9 authored by Edward Wang's avatar Edward Wang Committed by Rafaël Carré

src: Win32: add message categories to debug logs

Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 434cf8e4
...@@ -325,9 +325,14 @@ static void Win32DebugOutputMsg (void* d, int type, const msg_item_t *p_item, ...@@ -325,9 +325,14 @@ static void Win32DebugOutputMsg (void* d, int type, const msg_item_t *p_item,
msg[msg_len] = '\n'; msg[msg_len] = '\n';
msg[msg_len + 1] = '\0'; msg[msg_len + 1] = '\0';
} }
wchar_t *wmsg = ToWide(msg); char* psz_msg = NULL;
OutputDebugStringW(wmsg); if(asprintf(&psz_msg, "%s %s%s: %s", p_item->psz_module,
free(wmsg); p_item->psz_object_type, msg_type[type], msg) > 0) {
wchar_t* wmsg = ToWide(psz_msg);
OutputDebugStringW(wmsg);
free(wmsg);
free(psz_msg);
}
} }
free(msg); free(msg);
} }
......
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