Skip to content

Commit

Permalink
fixup! drivers: 64 bit compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fzi-haxel committed Dec 8, 2023
1 parent 247798a commit 3d3a4ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/atwinc15x0/atwinc15x0_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ static int _atwinc15x0_get(netdev_t *netdev, netopt_t opt, void *val,
assert(dev);
assert(dev == atwinc15x0);

DEBUG("%s dev=%p opt=%u val=%p max_len=%u\n", __func__,
(void *)netdev, opt, val, (unsigned)max_len);
DEBUG("%s dev=%p opt=%u val=%p max_len=%lu\n", __func__,
(void *)netdev, opt, val, (unsigned long)max_len);

switch (opt) {
case NETOPT_IS_WIRED:
Expand Down
4 changes: 2 additions & 2 deletions drivers/lcd/lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void lcd_ll_release(lcd_t *dev)
void lcd_ll_write_cmd(lcd_t *dev, uint8_t cmd, const uint8_t *data,
size_t len)
{
DEBUG("[%s] command 0x%02x (%u) ", __func__, cmd, len);
DEBUG("[%s] command 0x%02x (%lu) ", __func__, cmd, (unsigned long)len);
if (IS_USED(ENABLE_DEBUG) && len) {
for (uint8_t i = 0; i < len; i++) {
DEBUG("0x%02x ", data[i]);
Expand All @@ -310,7 +310,7 @@ void lcd_ll_read_cmd(lcd_t *dev, uint8_t cmd, uint8_t *data, size_t len)
{
assert(len);

DEBUG("[%s] command 0x%02x (%u) ", __func__, cmd, len);
DEBUG("[%s] command 0x%02x (%lu) ", __func__, cmd, (unsigned long)len);

lcd_ll_cmd_start(dev, cmd, true);
lcd_ll_read_bytes(dev, false, data, len);
Expand Down

0 comments on commit 3d3a4ef

Please sign in to comment.