From 31180ec4045cdde67201f2998c1c62350511e1e7 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Sat, 5 Oct 2019 18:03:59 -0700 Subject: [PATCH] Fix printf format specifier to match length of data type. --- cores/nRF5/verify.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/nRF5/verify.h b/cores/nRF5/verify.h index 8314276b..1154f777 100644 --- a/cores/nRF5/verify.h +++ b/cores/nRF5/verify.h @@ -62,7 +62,7 @@ extern "C" do { \ const char* (*_fstr)(int32_t) = _funcstr;\ printf("%s: %d: verify failed, error = ", __PRETTY_FUNCTION__, __LINE__);\ - if (_fstr) printf(_fstr(_status)); else printf("%d", _status);\ + if (_fstr) printf(_fstr(_status)); else printf("%ld", _status);\ printf("\n");\ }while(0) #else