mirror of
https://github.com/0x221E/ibuild.git
synced 2026-01-18 02:42:20 +00:00
Patch: Fix variadic use in die_f and log_f
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
void die_f(const char* func, int l, const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args);
|
||||
va_start(args, fmt);
|
||||
printf("IBUILD Error (%d:%s): ", l, func);
|
||||
vprintf(fmt, args);
|
||||
printf("\nlast syscall error: \n", strerror(errno));
|
||||
printf("\nlast syscall error: %s \n", strerror(errno));
|
||||
va_end(args);
|
||||
exit(1);
|
||||
}
|
||||
@@ -21,7 +21,7 @@ void die_f(const char* func, int l, const char* fmt,...)
|
||||
void log_f(const char* func, int l, const char* fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args);
|
||||
va_start(args, fmt);
|
||||
printf("IBUILD Log (%d:%s): ", l, func);
|
||||
vprintf(fmt, args);
|
||||
printf("\n");
|
||||
|
||||
Reference in New Issue
Block a user