Re: [PATCH v2] lkdtm/bugs: fix build error in lkdtm_EXHAUST_STACK

2019-08-28 Thread Kees Cook
On Tue, Aug 27, 2019 at 11:36:19AM -0600, Raul E Rangel wrote: > lkdtm/bugs.c:94:2: error: format '%d' expects argument of type 'int', but > argument 2 has type 'long unsigned int' [-Werror=format=] > pr_info("Calling function with %d frame size to depth %d ...\n", > ^ > THREAD_SIZE is

[PATCH v2] lkdtm/bugs: fix build error in lkdtm_EXHAUST_STACK

2019-08-27 Thread Raul E Rangel
lkdtm/bugs.c:94:2: error: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Werror=format=] pr_info("Calling function with %d frame size to depth %d ...\n", ^ THREAD_SIZE is defined as a unsigned long, cast CONFIG_FRAME_WARN to unsigned long as well.