blob: 22acfb66be867082f960e150148ba5c8cf65e610 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <stdio.h>
#include <zircon/compiler.h>
__BEGIN_CDECLS
// per-file chatty debug macro
#define xprintf(fmt, args...) \
do { \
if (ZXDEBUG) { \
printf("%s:%d: " fmt, __FILE__, __LINE__, ##args); \
} \
} while (0)
__END_CDECLS