Skip to content

Commit

Permalink
Staging: hv: remove last user of DPRINT() macro
Browse files Browse the repository at this point in the history
This also removed the unused function hv_dump_ring_info().

Cc: K. Y. Srinivasan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Oct 11, 2011
1 parent d181daa commit 1a26430
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
2 changes: 0 additions & 2 deletions drivers/hv/hyperv_vmbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,6 @@ int hv_ringbuffer_read(struct hv_ring_buffer_info *ring_info,

u32 hv_get_ringbuffer_interrupt_mask(struct hv_ring_buffer_info *ring_info);

void hv_dump_ring_info(struct hv_ring_buffer_info *ring_info, char *prefix);

void hv_ringbuffer_get_debuginfo(struct hv_ring_buffer_info *ring_info,
struct hv_ring_buffer_debug_info *debug_info);

Expand Down
31 changes: 0 additions & 31 deletions drivers/hv/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,37 +172,6 @@ hv_get_ring_bufferindices(struct hv_ring_buffer_info *ring_info)
return (u64)ring_info->ring_buffer->write_index << 32;
}


/*
*
* hv_dump_ring_info()
*
* Dump out to console the ring buffer info
*
*/
void hv_dump_ring_info(struct hv_ring_buffer_info *ring_info, char *prefix)
{
u32 bytes_avail_towrite;
u32 bytes_avail_toread;

hv_get_ringbuffer_availbytes(ring_info,
&bytes_avail_toread,
&bytes_avail_towrite);

DPRINT(VMBUS,
DEBUG_RING_LVL,
"%s <<ringinfo %p buffer %p avail write %u "
"avail read %u read idx %u write idx %u>>",
prefix,
ring_info,
ring_info->ring_buffer->buffer,
bytes_avail_towrite,
bytes_avail_toread,
ring_info->ring_buffer->read_index,
ring_info->ring_buffer->write_index);
}


/*
*
* hv_copyfrom_ringbuffer()
Expand Down
8 changes: 0 additions & 8 deletions include/linux/hyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -722,17 +722,9 @@ extern void vmbus_ontimer(unsigned long data);

/* Logging Level */
#define INFO_LVL 6
#define DEBUG_RING_LVL 9

extern unsigned int vmbus_loglevel;

#define DPRINT(mod, lvl, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(lvl <= LOWORD(vmbus_loglevel))) \
printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
} while (0)


struct hv_driver;
struct hv_device;

Expand Down

0 comments on commit 1a26430

Please sign in to comment.