Changeset 5572ad1 in mainline for uspace/drv
- Timestamp:
- 2012-08-23T21:50:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 276e44a
- Parents:
- ae827d0 (diff), db81577 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/drv
- Files:
-
- 3 edited
-
bus/isa/i8237.c (modified) (2 diffs)
-
char/ps2mouse/ps2mouse.c (modified) (1 diff)
-
nic/rtl8139/driver.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/i8237.c
rae827d0 r5572ad1 351 351 352 352 /* 16 bit transfers are a bit special */ 353 ddf_msg(LVL_DEBUG, "Unspoiled address: %p and size: %zu.", pa, size); 353 ddf_msg(LVL_DEBUG, "Unspoiled address %#" PRIx32 " (size %" PRIu16 ")", 354 pa, size); 354 355 if (channel > 4) { 355 356 /* Size must be aligned to 16 bits */ … … 367 368 const dma_channel_t dma_channel = controller_8237.channels[channel]; 368 369 369 ddf_msg(LVL_DEBUG, "Setting channel %u , to address %p(%zu), mode %hhx.",370 channel, pa, size, mode);370 ddf_msg(LVL_DEBUG, "Setting channel %u to address %#" PRIx32 " " 371 "(size %" PRIu16 "), mode %hhx.", channel, pa, size, mode); 371 372 372 373 /* Mask DMA request */ -
uspace/drv/char/ps2mouse/ps2mouse.c
rae827d0 r5572ad1 75 75 const ssize_t size = chardev_read(sess, &data, 1); \ 76 76 if (size != 1) { \ 77 ddf_msg(LVL_ERROR, "Failed reading byte: % d)", size);\77 ddf_msg(LVL_ERROR, "Failed reading byte: %zd)", size);\ 78 78 return size < 0 ? size : EIO; \ 79 79 } \ -
uspace/drv/nic/rtl8139/driver.c
rae827d0 r5572ad1 620 620 /* Check if the header is valid, otherwise we are lost in the buffer */ 621 621 if (size == 0 || size > RTL8139_FRAME_MAX_LENGTH) { 622 ddf_msg(LVL_ERROR, "Receiver error -> receiver reset (size: %4" PRIu16", "623 "header 0x%4" PRIx16". Offset: %zu)", size, frame_header,622 ddf_msg(LVL_ERROR, "Receiver error -> receiver reset (size: %4" PRIu16 ", " 623 "header 0x%4" PRIx16 ". Offset: %d)", size, frame_header, 624 624 rx_offset); 625 625 goto rx_err; … … 1162 1162 1163 1163 /* Allocate buffer for receiver */ 1164 ddf_msg(LVL_DEBUG, "Allocating receiver buffer of the size % zubytes",1164 ddf_msg(LVL_DEBUG, "Allocating receiver buffer of the size %d bytes", 1165 1165 RxBUF_TOT_LENGTH); 1166 1166 … … 1249 1249 /* Gain control over port's registers. */ 1250 1250 if (pio_enable(rtl8139->io_addr, RTL8139_IO_SIZE, &rtl8139->io_port)) { 1251 ddf_msg(LVL_ERROR, "Cannot gain the port % lxfor device %s.", rtl8139->io_addr,1251 ddf_msg(LVL_ERROR, "Cannot gain the port %p for device %s.", rtl8139->io_addr, 1252 1252 ddf_dev_get_name(dev)); 1253 1253 return EADDRNOTAVAIL; … … 1296 1296 1297 1297 assert(dev); 1298 ddf_msg(LVL_NOTE, "RTL8139_dev_add %s (handle = % d)",1298 ddf_msg(LVL_NOTE, "RTL8139_dev_add %s (handle = %zu)", 1299 1299 ddf_dev_get_name(dev), ddf_dev_get_handle(dev)); 1300 1300 … … 1328 1328 rc = nic_connect_to_services(nic_data); 1329 1329 if (rc != EOK) { 1330 ddf_msg(LVL_ERROR, "Failed to connect to services ", rc);1330 ddf_msg(LVL_ERROR, "Failed to connect to services (%d)", rc); 1331 1331 goto err_irq; 1332 1332 } … … 2139 2139 pio_write_32(rtl8139->io_port + TCTR, 0); 2140 2140 2141 ddf_msg(LVL_DEBUG, "Periodic mode. Interrupt mask %"PRIx16", poll.full_skips %" 2142 PRIu32", last timer %"PRIu32".", rtl8139->int_mask, 2143 rtl8139->poll_timer.full_skips, rtl8139->poll_timer.last_val); 2141 ddf_msg(LVL_DEBUG, "Periodic mode. Interrupt mask %" PRIx16 ", " 2142 "poll.full_skips %zu, last timer %" PRIu32, 2143 rtl8139->int_mask, rtl8139->poll_timer.full_skips, 2144 rtl8139->poll_timer.last_val); 2144 2145 break; 2145 2146 default:
Note:
See TracChangeset
for help on using the changeset viewer.
