[S390] Cleanup appldata printk messages.
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
committed by
Heiko Carstens
parent
d5ddc809bf
commit
d3ae942d18
@ -21,9 +21,6 @@
|
||||
#include "appldata.h"
|
||||
|
||||
|
||||
#define MY_PRINT_NAME "appldata_net_sum" /* for debug messages, etc. */
|
||||
|
||||
|
||||
/*
|
||||
* Network data
|
||||
*
|
||||
@ -60,26 +57,6 @@ static struct appldata_net_sum_data {
|
||||
} __attribute__((packed)) appldata_net_sum_data;
|
||||
|
||||
|
||||
static inline void appldata_print_debug(struct appldata_net_sum_data *net_data)
|
||||
{
|
||||
P_DEBUG("--- NET - RECORD ---\n");
|
||||
|
||||
P_DEBUG("nr_interfaces = %u\n", net_data->nr_interfaces);
|
||||
P_DEBUG("rx_packets = %8lu\n", net_data->rx_packets);
|
||||
P_DEBUG("tx_packets = %8lu\n", net_data->tx_packets);
|
||||
P_DEBUG("rx_bytes = %8lu\n", net_data->rx_bytes);
|
||||
P_DEBUG("tx_bytes = %8lu\n", net_data->tx_bytes);
|
||||
P_DEBUG("rx_errors = %8lu\n", net_data->rx_errors);
|
||||
P_DEBUG("tx_errors = %8lu\n", net_data->tx_errors);
|
||||
P_DEBUG("rx_dropped = %8lu\n", net_data->rx_dropped);
|
||||
P_DEBUG("tx_dropped = %8lu\n", net_data->tx_dropped);
|
||||
P_DEBUG("collisions = %8lu\n", net_data->collisions);
|
||||
|
||||
P_DEBUG("sync_count_1 = %u\n", net_data->sync_count_1);
|
||||
P_DEBUG("sync_count_2 = %u\n", net_data->sync_count_2);
|
||||
P_DEBUG("timestamp = %lX\n", net_data->timestamp);
|
||||
}
|
||||
|
||||
/*
|
||||
* appldata_get_net_sum_data()
|
||||
*
|
||||
@ -135,9 +112,6 @@ static void appldata_get_net_sum_data(void *data)
|
||||
|
||||
net_data->timestamp = get_clock();
|
||||
net_data->sync_count_2++;
|
||||
#ifdef APPLDATA_DEBUG
|
||||
appldata_print_debug(net_data);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -159,17 +133,7 @@ static struct appldata_ops ops = {
|
||||
*/
|
||||
static int __init appldata_net_init(void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
P_DEBUG("sizeof(net) = %lu\n", sizeof(struct appldata_net_sum_data));
|
||||
|
||||
rc = appldata_register_ops(&ops);
|
||||
if (rc != 0) {
|
||||
P_ERROR("Error registering ops, rc = %i\n", rc);
|
||||
} else {
|
||||
P_DEBUG("%s-ops registered!\n", ops.name);
|
||||
}
|
||||
return rc;
|
||||
return appldata_register_ops(&ops);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -180,7 +144,6 @@ static int __init appldata_net_init(void)
|
||||
static void __exit appldata_net_exit(void)
|
||||
{
|
||||
appldata_unregister_ops(&ops);
|
||||
P_DEBUG("%s-ops unregistered!\n", ops.name);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user