Check if STACK is defined before using the stack(9).

PR: 227446
Reported by: emaste
Approved by: ken
This commit is contained in:
Ram Kishore Vegesna 2018-04-13 13:31:20 +00:00
parent 4be5a951f6
commit 80b5058dcc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332471

View File

@ -37,6 +37,7 @@
*/
#include "ocs.h"
#include "opt_stack.h"
#include <sys/sysctl.h>
#include <sys/malloc.h>
#include <sys/linker.h> /* for debug of memory allocations */
@ -855,11 +856,13 @@ void ocs_intr_enable(ocs_os_handle_t os)
void ocs_print_stack(void)
{
#if defined(STACK)
struct stack st;
stack_zero(&st);
stack_save(&st);
stack_print(&st);
#endif
}
void ocs_abort(void)