Commit Graph

6 Commits

Author SHA1 Message Date
Jiuzhu Dong
5fab48a2fe testing/scanftest: fix nxstyle
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-28 00:25:56 +08:00
Jiuzhu Dong
494b47c692 fix compile warning
scanftest_main.c:1121:34: warning: ‘%s’ directive writing up to 2 bytes into a region of size between 1 and 80 [-Wformat-overflow=]
canftest_main.c: In function 'scanftest_main':
scanftest_main.c:1399:42: warning: format '%n' expects argument of type 'int *', but argument 3 has type 'unsigned int' [-Wformat=]
 1399 |               printf("Test #%u assigned %nou instead of %lli.\n",
      |                                         ~^
      |                                          |
      |                                          int *
      |                                         %d
 1400 |                      t + 1, nou, type_data[t].value.u);
      |                             ~~~
      |                             |
      |                             unsigned int

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-28 00:25:56 +08:00
Xiang Xiao
e806097c70 Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard. 2019-10-06 06:14:56 -06:00
Johannes
7d500adcd9 testing/scanftest/scanftest_main.c: Initialized s3, changed Ok to PASSED for Back to Back test. 2019-02-15 07:00:10 -06:00
Gregory Nutt
01d40ae540 apps/testing/scanftest/scanftest_main.c: Test improvements. 2019-02-14 15:53:24 -06:00
Johannes
c26f0ff2e4 apps/testing/scanftest: Port of Greg King's scanf test (https://github.com/cc65). 2019-02-14 08:28:46 -06:00