1 // Copyright 2016 The Fuchsia Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #pragma once 6 7 #include <stdio.h> 8 #include <zircon/compiler.h> 9 10 __BEGIN_CDECLS 11 12 // per-file chatty debug macro 13 #define xprintf(fmt, args...) \ 14 do { \ 15 if (ZXDEBUG) { \ 16 printf("%s:%d: " fmt, __FILE__, __LINE__, ##args); \ 17 } \ 18 } while (0) 19 20 __END_CDECLS 21