mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
nxcodec: fix build warning
nxcodec_main.c:143:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
143 | printf("nxcodec size: %lux%lu\n",
| ~~^
| |
| long unsigned int
| %u
144 | codec.output.format.fmt.pix.width,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka unsigned int}
nxcodec_main.c:143:41: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
143 | printf("nxcodec size: %lux%lu\n",
| ~~^
| |
| long unsigned int
| %u
144 | codec.output.format.fmt.pix.width,
145 | codec.output.format.fmt.pix.height);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| uint32_t {aka unsigned int}
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
parent
8f50bf3867
commit
de8fae7119
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ int main(int argc, FAR char **argv)
|
|||
codec.capture.format.fmt.pix.width;
|
||||
codec.output.format.fmt.pix.height =
|
||||
codec.capture.format.fmt.pix.height;
|
||||
printf("nxcodec size: %lux%lu\n",
|
||||
printf("nxcodec size: %"PRIu32"x%"PRIu32"\n",
|
||||
codec.output.format.fmt.pix.width,
|
||||
codec.output.format.fmt.pix.height);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue