소스 검색

Print error and debug to stderr

dev
x3 9 달 전
부모
커밋
d6fc97a87d
로그인 계정: x3 <sugarpanning@cock.li> GPG 키 ID: 7E9961E8AD0E240E
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. +6
    -6
      src/uio.c

+ 6
- 6
src/uio.c 파일 보기

@@ -20,9 +20,9 @@ void uio_error(const char *format, ...)
va_list ap;
va_start(ap, format);
printf("\033[31m[ERROR]: ");
vprintf(format, ap);
printf("\033[0m\n");
fprintf(stderr, "\033[31m[ERROR]: ");
vfprintf(stderr, format, ap);
fprintf(stderr, "\033[0m\n");

va_end(ap);
}
@@ -38,9 +38,9 @@ void uio_debug(const char *format, ...)

va_start(ap, format);
printf("\033[35m[DEBUG]: ");
vprintf(format, ap);
printf("\033[0m\n");
fprintf(stderr, "\033[35m[DEBUG]: ");
vfprintf(stderr, format, ap);
fprintf(stderr, "\033[0m\n");

va_end(ap);
}


불러오는 중...
취소
저장