From 6851eb440b25b9e51662510d8ae5132ce4c242be Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 14 Jul 2018 22:08:46 -0400 Subject: driver: argv usage and error output: use the signal-resilient pe_dprintf(). --- src/internal/perk_dprintf_impl.h | 4 ++++ src/internal/perk_driver_impl.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/internal/perk_dprintf_impl.h b/src/internal/perk_dprintf_impl.h index 61e400d..d9dfc52 100644 --- a/src/internal/perk_dprintf_impl.h +++ b/src/internal/perk_dprintf_impl.h @@ -1,6 +1,10 @@ #ifndef PERK_DPRINTF_IMPL_H #define PERK_DPRINTF_IMPL_H +#ifdef ARGV_DRIVER +#define argv_dprintf pe_dprintf +#endif + int pe_dprintf(int fd, const char * fmt, ...); #endif diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h index 25edf37..4a4d231 100644 --- a/src/internal/perk_driver_impl.h +++ b/src/internal/perk_driver_impl.h @@ -7,6 +7,7 @@ #include #include +#include "perk_dprintf_impl.h" #include "argv/argv.h" #define PERK_OPTV_ELEMENTS 64 -- cgit v1.2.3