blob: e4d1b92210d69a3bd68b3e20a1a7d25037ae4796 [file] [log] [blame]
/*
* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <stdio.h>
#include <stdarg.h>
#include <stdbool.h>
#include "include/alsa_conformance_debug.h"
/* Set true to enable debug mode. Or use --debug flag. */
extern int DEBUG_MODE;
void logger(const char *format, ...)
{
va_list arg;
if (!DEBUG_MODE)
return;
va_start (arg, format);
vfprintf(stderr, format, arg);
va_end (arg);
}