diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-05-25 16:19:58 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:39:23 -0700 |
commit | 900d20a8d6d5da9d84835ff16c4689f42379e8ee (patch) | |
tree | 39d23497f007b73ef993d3551ff2596e3ffeddc8 /include | |
parent | 7cdac50783854ed3d3b15179e6d8f2e1512765d6 (diff) |
can separately enable vboot-related debug output
U-Boot debug output is very verbose, and sometimes does not help
debugging verified boot related changes. This commit let us enable
vboot-related debug output separately.
BUG=chromium-os:15747
TEST=boot and see vboot-related debug output
Cherry-pick: 84c65f7
Change-Id: I934d46654777347f09d9d3d71c55b3e478fd02c6
Reviewed-on: http://gerrit.chromium.org/gerrit/1532
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/chromeos/common.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/chromeos/common.h b/include/chromeos/common.h new file mode 100644 index 00000000000..01052ef2a5a --- /dev/null +++ b/include/chromeos/common.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2011 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. + * + * Alternatively, this software may be distributed under the terms of the + * GNU General Public License ("GPL") version 2 as published by the Free + * Software Foundation. + */ + +#ifndef CHROMEOS_COMMON_H_ +#define CHROMEOS_COMMON_H_ + +#if defined DEBUG +#define VBDEBUG debug +#elif defined VBOOT_DEBUG +#define VBDEBUG(fmt, args...) printf(fmt ,##args) +#else +#define VBDEBUG(fmt, args...) +#endif + +#endif /* CHROMEOS_COMMON_H_ */ |