Skip to content

Commit c55b31a

Browse files
remckeerppt
authored andcommitted
memblock tests: set memblock_debug to enable memblock_dbg() messages
If Memblock simulator was compiled with MEMBLOCK_DEBUG=1, set memblock_debug to 1 so that memblock_dbg() will print debug information when memblock functions are tested in Memblock simulator. Signed-off-by: Rebecca Mckeever <[email protected]> Signed-off-by: Mike Rapoport <[email protected]> Link: https://lore.kernel.org/r/aee4200cce1c09992ed055006a81fde1b6b5b567.1656907314.git.remckee0@gmail.com
1 parent 76586c0 commit c55b31a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/testing/memblock/internal.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
#ifndef _MM_INTERNAL_H
33
#define _MM_INTERNAL_H
44

5+
/*
6+
* Enable memblock_dbg() messages
7+
*/
8+
#ifdef MEMBLOCK_DEBUG
9+
static int memblock_debug = 1;
10+
#endif
11+
512
struct page {};
613

714
void memblock_free_pages(struct page *page, unsigned long pfn,

0 commit comments

Comments
 (0)