나미/리눅스

디버깅용 메세지 출력

규남 2013. 8. 6. 12:22
반응형

#define pr_msg(s)  fprintf(stdout, "[%s/%s:%03d] "#s"\n",__FILE__,__FUNCTION__,__LINE__)
#define print_msg(io, fmt, arg...)   fprintf(io, "[%s/%s:%03d] [%s] #fmt"\n",__FILE__,__FUNCTION__,__LINE__, arg)

 

할때 긁어서 쓰면 좋음

728x90
반응형