aboutsummaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-25 11:31:01 +0100
committerDominik Maier <domenukk@gmail.com>2020-03-25 11:31:01 +0100
commitf6466214c61e751455097378f97ce60b1970e9d3 (patch)
treead5ae20fd9565d981cee4fb9e12f9c3673124e50 /include/common.h
parent9c4d32b5b8d20b86afb2c59045baa63dd5a23031 (diff)
downloadafl++-f6466214c61e751455097378f97ce60b1970e9d3.tar.gz
code format
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/common.h b/include/common.h
index 97076004..8b21b55f 100644
--- a/include/common.h
+++ b/include/common.h
@@ -78,7 +78,7 @@ static u64 get_cur_time_us(void) {
Will return buf for convenience. */
static u8 *stringify_int(u8 *buf, size_t len, u64 val) {
-
+\
#define CHK_FORMAT(_divisor, _limit_mult, _fmt, _cast) \
do { \
\
@@ -233,23 +233,22 @@ static u8 *stringify_time_diff(u8 *buf, size_t len, u64 cur_ms, u64 event_ms) {
}
-
/* Unsafe Describe integer. The buf sizes are not checked.
This is unsafe but fast.
Will return buf for convenience. */
static u8 *u_stringify_int(u8 *buf, u64 val) {
-
-#define CHK_FORMAT(_divisor, _limit_mult, _fmt, _cast) \
- do { \
- \
- if (val < (_divisor) * (_limit_mult)) { \
- \
- sprintf(buf, _fmt, ((_cast)val) / (_divisor)); \
- return buf; \
- \
- } \
- \
+\
+#define CHK_FORMAT(_divisor, _limit_mult, _fmt, _cast) \
+ do { \
+ \
+ if (val < (_divisor) * (_limit_mult)) { \
+ \
+ sprintf(buf, _fmt, ((_cast)val) / (_divisor)); \
+ return buf; \
+ \
+ } \
+ \
} while (0)
/* 0-9999 */