Fix logging issues.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* Implementation of the IDE emulation for hard disks and ATAPI
|
||||
* CD-ROM devices.
|
||||
*
|
||||
* Version: @(#)hdc_ide.c 1.0.20 2017/11/24
|
||||
* Version: @(#)hdc_ide.c 1.0.21 2017/12/09
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <inttypes.h>
|
||||
#include <wchar.h>
|
||||
#define HAVE_STDARG_H
|
||||
#include "../86box.h"
|
||||
#include "../cpu/cpu.h"
|
||||
#include "../machine/machine.h"
|
||||
@@ -110,15 +111,15 @@ int ide_do_log = ENABLE_IDE_LOG;
|
||||
#endif
|
||||
|
||||
|
||||
static void ide_log(const char *format, ...)
|
||||
static void ide_log(const char *fmt, ...)
|
||||
{
|
||||
#ifdef ENABLE_IDE_LOG
|
||||
va_list ap;
|
||||
|
||||
if (ide_do_log)
|
||||
{
|
||||
va_start(ap, format);
|
||||
pclog(format, ap);
|
||||
va_start(ap, fmt);
|
||||
pclog_ex(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* based design. Most cards were WD1003-WA2 or -WAH, where the
|
||||
* -WA2 cards had a floppy controller as well (to save space.)
|
||||
*
|
||||
* Version: @(#)hdd_mfm_at.c 1.0.11 2017/11/04
|
||||
* Version: @(#)hdc_mfm_at.c 1.0.12 2017/12/09
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Handling of hard disk image files.
|
||||
*
|
||||
* Version: @(#)hdd_image.c 1.0.8 2017/11/24
|
||||
* Version: @(#)hdd_image.c 1.0.9 2017/12/09
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <wchar.h>
|
||||
#include <errno.h>
|
||||
#define HAVE_STDARG_H
|
||||
#include "../86box.h"
|
||||
#include "../plat.h"
|
||||
#include "hdd.h"
|
||||
@@ -55,15 +56,15 @@ int hdd_image_do_log = ENABLE_HDD_LOG;
|
||||
|
||||
|
||||
static void
|
||||
hdd_image_log(const char *format, ...)
|
||||
hdd_image_log(const char *fmt, ...)
|
||||
{
|
||||
#ifdef ENABLE_HDD_LOG
|
||||
va_list ap;
|
||||
|
||||
if (hdd_image_do_log)
|
||||
{
|
||||
va_start(ap, format);
|
||||
pclog(format, ap);
|
||||
va_start(ap, fmt);
|
||||
pclog_ex(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user