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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-07-17 14:07:59 +08:00 committed by Petro Karashchenko
parent 5ae2e1034b
commit af2741317a

View File

@ -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);