PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
module_debug.h
1
#ifndef _MODULE_DEBUG_H
2
#define _MODULE_DEBUG_H
3
4
#define MODNAME "usbmass_bd"
5
#ifndef MINI_DRIVER
6
#define M_PRINTF(format, args...) printf(MODNAME ": " format, ##args)
7
#else
8
#define M_PRINTF(format, args...) \
9
do { \
10
} while (0)
11
#endif
12
13
#ifdef DEBUG
14
#define M_DEBUG M_PRINTF
15
#else
16
#define M_DEBUG(format, args...) \
17
do { \
18
} while (0)
19
#endif
20
21
// u64 when being used in a printf statement is split into two u32 values
22
#define U64_2XU32(val) \
23
u32 val##_u32[2]; \
24
memcpy(val##_u32, &val, sizeof(val##_u32))
25
26
#ifdef DEBUG
27
#define DEBUG_U64_2XU32(val) U64_2XU32(val)
28
#else
29
#define DEBUG_U64_2XU32(val) do { } while (0)
30
#endif
31
32
#endif
iop
usb
usbmass_bd
src
include
module_debug.h
Generated on Tue Feb 11 2025 21:35:57 for PS2SDK by
1.12.0