Skip to content

Commit

Permalink
Update drivers/nutdrv_qx.c
Browse files Browse the repository at this point in the history
Fix debug printout
  • Loading branch information
jimklimov authored Aug 3, 2023
1 parent 567d501 commit ae9faf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nutdrv_qx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ static int armac_command(const char *cmd, char *buf, size_t buflen)
// Timeout - buffer is clean.
break;
}
upsdebugx(4, "armac cleanup ret i=%ld ret=%d ctrl=%02hhx", i, ret, tmpbuf[0]);
upsdebugx(4, "armac cleanup ret i=%" PRIuSIZE " ret=%d ctrl=%02hhx", i, ret, tmpbuf[0]);
}

/* Send command to the UPS in 3-byte chunks. Most fit 1 chunk, except for eg.
Expand Down

0 comments on commit ae9faf3

Please sign in to comment.