GITLAB

에프에이리눅스 / 1611_0007_prime_oven

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
0e746a89383d3d39714998f24d5b06ead0e01b2b
  • 1611_0007_prime_oven
  • app
  • app_oven_controller
  • lib
  • debug_printf.c
  • 8c2952457   응용 프로그램 추가 Browse Code »
    김태훈
    8 years ago  
debug_printf.c 310 Bytes
edit raw blame history
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <basic_def.h>
#include <all_share.h>
#include <stdarg.h>

void __debug_printf( char *file, int line, char *fmt, ...){

    static char         buff[2048];
    va_list             ap;


    va_start(ap, fmt);
    vsprintf( buff, fmt, ap);
    va_end(ap);

    printf( "[%s:%d]%s", file, line, buff);
}