From af2741317aa3ea3a8b74825c484a254ff7660dc9 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 17 Jul 2022 14:07:59 +0800 Subject: [PATCH] examples/noteprintf: Change CONFIG_LIBC_LONG_LONG to CONFIG_HAVE_LONG_LONG follow the kernel side change: https://github.com/apache/incubator-nuttx/pull/6613 Signed-off-by: Xiang Xiao --- examples/noteprintf/noteprintf_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/noteprintf/noteprintf_main.c b/examples/noteprintf/noteprintf_main.c index 64d44ee26..c2a00594f 100644 --- a/examples/noteprintf/noteprintf_main.c +++ b/examples/noteprintf/noteprintf_main.c @@ -59,7 +59,7 @@ int main(int argc, FAR char *argv[]) short s = 2; int i = 3; long l = 4; -#ifdef CONFIG_LIBC_LONG_LONG +#ifdef CONFIG_HAVE_LONG_LONG long long ll = 5; #endif intmax_t im = 6; @@ -84,7 +84,9 @@ int main(int argc, FAR char *argv[]) SCHED_NOTE_BPRINTF(3, "%hd", s); SCHED_NOTE_BPRINTF(4, "%d", i); SCHED_NOTE_BPRINTF(5, "%ld", l); +#ifdef CONFIG_HAVE_LONG_LONG SCHED_NOTE_BPRINTF(6, "%lld", ll); +#endif SCHED_NOTE_BPRINTF(7, "%jd", im); SCHED_NOTE_BPRINTF(8, "%zd", sz); SCHED_NOTE_BPRINTF(9, "%td", ptr);