diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-06-20 06:50:05 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-06-20 06:50:05 +0000 |
commit | 12ec8c3d52a505dae93dce63a789d87f5c5894b5 (patch) | |
tree | 62f97ab3be9a011d7b0276f515c3b35e82fa769f /sys/dev/pci/drm | |
parent | a8d0e4e33a46e22c40182529238a1143ddd9d4de (diff) |
sf@ pointed out that atom.c defines a DEBUG macro that takes arguments,
this breaks when compiling a kernel with DEBUG defined for additional
printfs elsewhere. Instead of renaming the macro, undefine DEBUG
before the new definition to minimise the diff the linux.
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/radeon/atom.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon/atom.c b/sys/dev/pci/drm/radeon/atom.c index 7bf79957c53..1129ef2a785 100644 --- a/sys/dev/pci/drm/radeon/atom.c +++ b/sys/dev/pci/drm/radeon/atom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atom.c,v 1.3 2014/02/09 11:03:31 jsg Exp $ */ +/* $OpenBSD: atom.c,v 1.4 2014/06/20 06:50:04 jsg Exp $ */ /* * Copyright 2008 Advanced Micro Devices, Inc. * @@ -90,6 +90,10 @@ static void debug_print_spaces(int n) printf(" "); } +#ifdef DEBUG +#undef DEBUG +#endif + #define DEBUG(...) do if (atom_debug) { printf(__FILE__ __VA_ARGS__); } while (0) #define SDEBUG(...) do if (atom_debug) { printf(__FILE__); debug_print_spaces(debug_depth); printf(__VA_ARGS__); } while (0) #else |