디버깅용 메세지 출력 #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) 할때 긁어서 쓰면 좋음 나미/리눅스 2013.08.06