1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-29 16:03:47 +02:00

tests: Move LOG_ME to include/tests.h to be available everywhere

LOG_ME macro is very generic and can be useful anywhere in tests.
Previously was only used in scope of tests.c. With time more tests
are added, and more files, LOG_ME needs to be visible everywhere.

BUG=b:181803212
TEST=builds and ninja test

Change-Id: If7f3d256161bc8b81e996328e445cccab9a82174
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/57914
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Anastasia Klimchuk 2021-09-17 11:03:43 +10:00 committed by Nico Huber
parent d23613cf66
commit 83b5191399
2 changed files with 2 additions and 3 deletions

View File

@ -35,4 +35,6 @@
*/ */
void *not_null(void); void *not_null(void);
#define LOG_ME printf("%s is called\n", __func__)
#endif /* _TESTS_TEST_H */ #endif /* _TESTS_TEST_H */

View File

@ -21,9 +21,6 @@
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
/* redefinitions/wrapping */
#define LOG_ME printf("%s is called\n", __func__)
void *not_null(void) void *not_null(void)
{ {
return (void *)NON_ZERO; return (void *)NON_ZERO;