}
allocated_buffers++;
- print_msg(" Buffer allocated = 0x%x\n", (unsigned long)write_queue.end_ptr->data_buffer);
+ print_msg(" Buffer allocated = 0x%p\n", write_queue.end_ptr->data_buffer);
sync_init(&write_queue.end_ptr->buffer_sync);
}
allocated_buffers++;
- print_msg(" Buffer allocated = 0x%x, pages_order = %d\n",
- (unsigned long)buffer_address(write_queue.end_ptr->data_buffer),
+ print_msg(" Buffer allocated = 0x%p, pages_order = %d\n",
+ write_queue.end_ptr->data_buffer,
pages_order_in_subbuffer);
sync_init(&write_queue.end_ptr->buffer_sync);
print_debug("SWAP_DRIVER_BUFFER_UNINITIALIZE\n");
result = driver_to_buffer_uninitialize();
if (result < 0)
- print_err("Buffer uninitialization failed %d\n"< result);
+ print_err("Buffer uninitialization failed %d\n", result);
break;
}
* swap_device_wait queue if there is no data to be read. */
DECLARE_WAITQUEUE(wait, current);
int result;
- int subbuffers_count;
struct page *pages[PIPE_DEF_BUFFERS];
struct partial_page partial[PIPE_DEF_BUFFERS];
struct splice_pipe_desc spd = {