mirror of
https://github.com/linux-msm/qbootctl
synced 2024-11-23 06:33:25 +08:00
04f4ac81ea
Allocate gpt_disk on stack, allocate when needed, rather than multiple times for every partition. Huge code cleanup, rerun clang-format, etc Many changes here inspired by Eric's earlier work.
13 lines
192 B
C
13 lines
192 B
C
#ifndef __UTILS_H__
|
|
#define __UTILS_H__
|
|
|
|
// Enable debug logging
|
|
// #define DEBUG 1
|
|
|
|
#ifdef DEBUG
|
|
#define LOGD(fmt, ...) printf(fmt, ##__VA_ARGS__)
|
|
#else
|
|
#define LOGD(fmtn, ...)
|
|
#endif
|
|
|
|
#endif |