Skip to content

Commit 2fd0b07

Browse files
committed
acl_pll.cpp: fixed coverity Invalid type in argument to printf format specifier
Arguments are of type `size t` but specified `%d`, so it was changed to `%zu` instead.
1 parent 7de03cb commit 2fd0b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/acl_pll.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static int _acl_pll_read(acl_pll *pll, dev_addr_t addr, unsigned int *val) {
179179
size_t size = sizeof(unsigned int);
180180
size_t r = pll->io.read(&pll->io, addr, (char *)val, size);
181181
if (r < size) {
182-
pll->io.printf("PLL Error: Read failed, %d bytes read, %d expected\n", r,
182+
pll->io.printf("PLL Error: Read failed, %zu bytes read, %zu expected\n", r,
183183
size);
184184
return -1;
185185
}
@@ -192,7 +192,7 @@ static int _acl_pll_write(acl_pll *pll, unsigned int addr, unsigned int val) {
192192
size_t size = sizeof(unsigned int);
193193
size_t r = pll->io.write(&pll->io, (dev_addr_t)addr, (char *)&val, size);
194194
if (r < size) {
195-
pll->io.printf("PLL Error: Write failed, %d bytes written, %d expected\n",
195+
pll->io.printf("PLL Error: Write failed, %zu bytes written, %zu expected\n",
196196
r, size);
197197
return -1;
198198
}

0 commit comments

Comments
 (0)