From 917c0e9dd03dbce06ee327f8823040a772c2ab5d Mon Sep 17 00:00:00 2001 From: waltje Date: Fri, 20 Apr 2018 18:42:01 -0400 Subject: [PATCH] Bugfix for no logging in HDC. --- src/disk/hdc.c | 5 +++-- src/disk/hdc.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/disk/hdc.c b/src/disk/hdc.c index 7210c09..262cea4 100644 --- a/src/disk/hdc.c +++ b/src/disk/hdc.c @@ -8,7 +8,7 @@ * * Common code to handle all sorts of disk controllers. * - * Version: @(#)hdc.c 1.0.8 2018/04/14 + * Version: @(#)hdc.c 1.0.9 2018/04/20 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -37,6 +37,7 @@ #include #include #include +#include #include #define HAVE_STDARG_H #include "../emu.h" @@ -160,7 +161,7 @@ static const struct { void hdc_log(const char *fmt, ...) { -#ifdef ENABLE_IDE_LOG +#ifdef ENABLE_HDC_LOG va_list ap; if (hdc_do_log) { diff --git a/src/disk/hdc.h b/src/disk/hdc.h index 542b45b..440119c 100644 --- a/src/disk/hdc.h +++ b/src/disk/hdc.h @@ -8,7 +8,7 @@ * * Definitions for the common disk controller handler. * - * Version: @(#)hdc.h 1.0.8 2018/04/14 + * Version: @(#)hdc.h 1.0.9 2018/04/20 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -63,6 +63,7 @@ extern const device_t esdi_at_wd1007vse1_device; /* esdi_at */ extern const device_t esdi_ps2_device; /* esdi_mca */ extern const device_t xta_isa_device; /* xta_isa */ +extern const device_t xta_ps1_device; /* xta_ps1 */ extern const device_t xtide_device; /* xtide_xt */ extern const device_t xtide_acculogic_device; /* xtide_ps2 */