Reset color before new line
authorCheoleun Moon <chleun.moon@samsung.com>
Wed, 8 Apr 2020 04:49:41 +0000 (13:49 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Wed, 8 Apr 2020 04:49:41 +0000 (13:49 +0900)
test/wifi-aware-publish-test.c

index 1adec7b8c643d1ff5178f6c889496bb556238427..b2342e7eb4c14d6d488eb038dbf0cc03d73c7083 100644 (file)
@@ -74,8 +74,8 @@
        } while (0)
 
 #define PRINT_SUCCESS(format, args...) printf(MAKE_GREEN format RESET_COLOR "\n", ##args)
-#define PRINT_FAILURE(format, args...) printf(MAKE_RED format RESET_COLOR, ##args)
-#define PRINT_FAILURE_ERROR(format, error) printf(MAKE_RED format " Failure(%d:%s)\n" RESET_COLOR, error, __print_error(error))
+#define PRINT_FAILURE(format, args...) printf(MAKE_RED format RESET_COLOR "\n", ##args)
+#define PRINT_FAILURE_ERROR(format, error) printf(MAKE_RED format " Failure(%d:%s)" RESET_COLOR "\n", error, __print_error(error))
 
 #define SERVICE_NAME "Wi-Fi Aware Test"
 #define OTHER_SERVICE_NAME "Other Service Name"