Skip to content

Commit

Permalink
No more emojis in kfd
Browse files Browse the repository at this point in the history
  • Loading branch information
coolstar committed Aug 22, 2023
1 parent cb758ea commit 2059e6d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Taurine/exploit/kfd/libkfd/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ typedef uintptr_t usize;

#define print(args...) printf(args)

#define print_err(args...)

#else /* CONFIG_PRINT */

#define print(args...)

#define print_err(args...) fprintf(stderr, args)

#endif /* CONFIG_PRINT */

#define print_bool(name) print("[%s]: %s = %s\n", __FUNCTION__, #name, name ? "true" : "false")
Expand All @@ -74,10 +78,10 @@ typedef uintptr_t usize;

#define print_string(name) print("[%s]: %s = %s\n", __FUNCTION__, #name, name)

#define print_message(args...) do { print("[%s]: ", __FUNCTION__); print(args); print("\n"); } while (0)
#define print_success(args...) do { print("[%s]: 🟢 ", __FUNCTION__); print(args); print("\n"); } while (0)
#define print_warning(args...) do { print("[%s]: 🟡 ", __FUNCTION__); print(args); print("\n"); } while (0)
#define print_failure(args...) do { print("[%s]: 🔴 ", __FUNCTION__); print(args); print("\n"); } while (0)
#define print_message(args...) do { print("[%s]: [INFO] ", __FUNCTION__); print(args); print("\n"); } while (0)
#define print_success(args...) do { print("[%s]: [SUCCESS] ", __FUNCTION__); print(args); print("\n"); } while (0)
#define print_warning(args...) do { print("[%s]: [WARNING] ", __FUNCTION__); print(args); print("\n"); } while (0)
#define print_failure(args...) do { print_err("[%s]: [ERROR] ", __FUNCTION__); print(args); print("\n"); } while (0)

#define print_timer(tv) \
do { \
Expand Down

0 comments on commit 2059e6d

Please sign in to comment.