sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
module_debug.h
Go to the documentation of this file.
1
5
#ifndef _MODULE_DEBUG_H
6
#define _MODULE_DEBUG_H
7
8
#define MODNAME "usbmass_bd"
9
#ifndef MINI_DRIVER
10
#define M_PRINTF(format, args...) printf(MODNAME ": " format, ##args)
11
#else
12
#define M_PRINTF(format, args...) \
13
do { \
14
} while (0)
15
#endif
16
17
#ifdef DEBUG
18
#define M_DEBUG M_PRINTF
19
#else
20
#define M_DEBUG(format, args...) \
21
do { \
22
} while (0)
23
#endif
24
25
// u64 when being used in a printf statement is split into two u32 values
26
#define U64_2XU32(val) \
27
u32 val##_u32[2]; \
28
memcpy(val##_u32, &val, sizeof(val##_u32))
29
30
#ifdef DEBUG
31
#define DEBUG_U64_2XU32(val) U64_2XU32(val)
32
#else
33
#define DEBUG_U64_2XU32(val) do { } while (0)
34
#endif
35
36
#endif
core
usbmass_bd
src
include
module_debug.h
Generated by
1.18.0