[PATCH] Fix format of sprintf
authorNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Mon, 1 Nov 2021 00:14:43 +0000 (09:14 +0900)
committerPeter Michael Green <plugwash@raspbian.org>
Fri, 25 Mar 2022 11:00:04 +0000 (11:00 +0000)
commitf31ec66fb592ed5a66ad33005f2856e8d19b595d
treefba8821013e07c659689d1b140104dd7db6b8295
parent72870c1ebef904c5bcc0453c3026789aa3c04982
[PATCH] Fix format of sprintf

https://buildd.debian.org/status/fetch.php?pkg=target-factory&arch=armel&ver=1.4-2&stamp=1635640153&raw=0

```
<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp: In function ‘const vitis::ai::Target vitis::ai::create_target_DPUCVDX8G_ISA1(uint64_t)’:
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp:61:29: error: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’ [-Werror=format=]
   61 |   sprintf(finger_hex, "%016lX", fingerprint);
      |                        ~~~~~^   ~~~~~~~~~~~
      |                             |   |
      |                             |   long long unsigned int
      |                             long unsigned int
      |                        %016llX
```

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Gbp-Pq: Name 0004-Fix-format-of-sprintf.patch
src/create_target_DPUCVDX8G_ISA0.cpp
src/create_target_DPUCVDX8G_ISA1.cpp
src/create_target_v2.cpp