GITLAB

에프에이리눅스 / 1611_0007_prime_oven

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • 1611_0007_prime_oven
  • app
  • app-prime-modbus
  • lib
  • debug_printf.c
  • cf0ca80f6   app_oven_control를 app-prime-modbus로 이름 변경 Browse Code »
    김태훈
    2017-04-18 18:38:39 +0900  
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);
}