From e9413de20a732201856e65954aaea3c5b2323be1 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 14 Jul 2018 22:38:19 -0400 Subject: driver: argv usage and error output: use the signal-resilient sfrt_dprintf(). --- src/internal/sofort_dprintf_impl.h | 4 ++++ src/internal/sofort_driver_impl.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/internal/sofort_dprintf_impl.h b/src/internal/sofort_dprintf_impl.h index bfcc4ca..1508ffc 100644 --- a/src/internal/sofort_dprintf_impl.h +++ b/src/internal/sofort_dprintf_impl.h @@ -1,6 +1,10 @@ #ifndef SOFORT_DPRINTF_IMPL_H #define SOFORT_DPRINTF_IMPL_H +#ifdef ARGV_DRIVER +#define argv_dprintf sfrt_dprintf +#endif + int sfrt_dprintf(int fd, const char * fmt, ...); #endif diff --git a/src/internal/sofort_driver_impl.h b/src/internal/sofort_driver_impl.h index a9788f4..640aa2d 100644 --- a/src/internal/sofort_driver_impl.h +++ b/src/internal/sofort_driver_impl.h @@ -6,6 +6,7 @@ #include #include +#include "sofort_dprintf_impl.h" #include "argv/argv.h" #define SFRT_OPTV_ELEMENTS 64 -- cgit v1.2.3