Changeset f0a2720 in mainline
- Timestamp:
- 2012-08-23T15:22:30Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- db81577
- Parents:
- aa492fe
- Location:
- uspace
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/i8237.c
raa492fe rf0a2720 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
raa492fe rf0a2720 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
raa492fe rf0a2720 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: -
uspace/srv/net/ethip/pdu.c
raa492fe rf0a2720 69 69 frame->size); 70 70 71 log_msg(LVL_DEBUG, "Encoding Ethernet frame src=%llx dest=%llx etype=%x", 72 frame->src, frame->dest, frame->etype_len); 71 log_msg(LVL_DEBUG, "Encoding Ethernet frame " 72 "src=%" PRIx64 " dest=%" PRIx64 " etype=%x", 73 frame->src.addr, frame->dest.addr, frame->etype_len); 73 74 log_msg(LVL_DEBUG, "Encoded Ethernet frame (%zu bytes)", size); 74 75 … … 104 105 frame->size); 105 106 106 log_msg(LVL_DEBUG, "Decoding Ethernet frame src=%llx dest=%llx etype=%x", 107 frame->src, frame->dest, frame->etype_len); 107 log_msg(LVL_DEBUG, "Decoding Ethernet frame " 108 "src=%" PRIx64 " dest=%" PRIx64 " etype=%x", 109 frame->src.addr, frame->dest.addr, frame->etype_len); 108 110 log_msg(LVL_DEBUG, "Decoded Ethernet frame payload (%zu bytes)", frame->size); 109 111 -
uspace/srv/net/tcp/conn.c
raa492fe rf0a2720 999 999 } else { 1000 1000 log_msg(LVL_DEBUG, "%s: Nothing left in segment, dropping " 1001 "(xfer_size=%zu, SEG.LEN=% zu, seg->ctrl=%u)",1002 conn->name, xfer_size, seg->len, (unsigned )seg->ctrl);1001 "(xfer_size=%zu, SEG.LEN=%" PRIu32 ", seg->ctrl=%u)", 1002 conn->name, xfer_size, seg->len, (unsigned int) seg->ctrl); 1003 1003 /* Nothing left in segment */ 1004 1004 tcp_segment_delete(seg); … … 1146 1146 void tcp_conn_segment_arrived(tcp_conn_t *conn, tcp_segment_t *seg) 1147 1147 { 1148 log_msg(LVL_DEBUG, "% c: tcp_conn_segment_arrived(%p)",1148 log_msg(LVL_DEBUG, "%s: tcp_conn_segment_arrived(%p)", 1149 1149 conn->name, seg); 1150 1150 -
uspace/srv/net/tcp/segment.c
raa492fe rf0a2720 250 250 log_msg(LVL_DEBUG2, "Segment dump:"); 251 251 log_msg(LVL_DEBUG2, " - ctrl = %u", (unsigned)seg->ctrl); 252 log_msg(LVL_DEBUG2, " - seq = % 253 log_msg(LVL_DEBUG2, " - ack = % 254 log_msg(LVL_DEBUG2, " - len = % 255 log_msg(LVL_DEBUG2, " - wnd = % 256 log_msg(LVL_DEBUG2, " - up = % 252 log_msg(LVL_DEBUG2, " - seq = %" PRIu32, seg->seq); 253 log_msg(LVL_DEBUG2, " - ack = %" PRIu32, seg->ack); 254 log_msg(LVL_DEBUG2, " - len = %" PRIu32, seg->len); 255 log_msg(LVL_DEBUG2, " - wnd = %" PRIu32, seg->wnd); 256 log_msg(LVL_DEBUG2, " - up = %" PRIu32, seg->up); 257 257 } 258 258 -
uspace/srv/net/tcp/tqueue.c
raa492fe rf0a2720 172 172 173 173 xfer_seqlen = min(snd_buf_seqlen, avail_wnd); 174 log_msg(LVL_DEBUG, "%s: snd_buf_seqlen = %zu, SND.WND = % zu, "174 log_msg(LVL_DEBUG, "%s: snd_buf_seqlen = %zu, SND.WND = %" PRIu32 ", " 175 175 "xfer_seqlen = %zu", conn->name, snd_buf_seqlen, conn->snd_wnd, 176 176 xfer_seqlen);
Note:
See TracChangeset
for help on using the changeset viewer.