Fixed some macros

This commit is contained in:
Max 2023-02-01 21:12:16 +01:00
parent 3ef62d8c6d
commit e48ae98860
2 changed files with 5 additions and 5 deletions

View File

@ -17,8 +17,8 @@ struct exp_data* get_from_list(int index);
void clear_list(); void clear_list();
// Tracing // Tracing
#define PRINT_LINE(msg, args...) fprintf(stdout, #msg "\n", ##args) #define PRINT_LINE(msg, args...) fprintf(stdout, msg "\n", ##args)
#define TRACE_WARN(msg, args...) fprintf(stdout, "[Warning]: " #msg "\n", ##args) #define TRACE_WARN(msg, args...) fprintf(stdout, "[Warning]: " msg "\n", ##args)
#define TRACE_ERROR(msg, args...) fprintf(stderr, "[ERROR]: " #msg "\n", ##args) #define TRACE_ERROR(msg, args...) fprintf(stderr, "[ERROR]: " msg "\n", ##args)
#endif #endif

View File

@ -15,9 +15,9 @@ int main(int argc, char *argv[])
signal(SIGINT, app_cleanup); signal(SIGINT, app_cleanup);
list_add("Socket server", "server", start_server); list_add("Socket server", "server", start_server);
list_add("Socket client", "client", clientstart); list_add("Socket client", "client", clientstart);
printf(" _____ \n / ____| \n | | _____ ___ __ \n | | / _ \\ \\/ / '_ \\ \n | |___| __/> <| |_) |\n \\_____\\___/_/\\_\\ .__/ \n | | \n |_| \n"); printf(" _____ \n / ____| \n | | _____ ___ __ \n | | / _ \\ \\/ / '_ \\ \n | |___| __/> <| |_) |\n \\_____\\___/_/\\_\\ .__/ \n | | \n |_| \n");
// Check for argruments and if we can use them. // Check for argruments and if we can use them.
int result = checkarg(argc, argv); int result = checkarg(argc, argv);
if (result == 0) if (result == 0)