Remove unsafe and non-functional DDB functions that I added long ago

for debugging.
This commit is contained in:
Sean Bruno 2017-04-03 21:19:12 +00:00
parent c45420ccac
commit 548b549ade

View file

@ -4378,40 +4378,3 @@ em_enable_vectors_82574(if_ctx_t ctx)
device_printf(dev, "Writing to eeprom: done\n");
}
}
#ifdef DDB
DB_COMMAND(em_reset_dev, em_ddb_reset_dev)
{
devclass_t dc;
int max_em;
dc = devclass_find("em");
max_em = devclass_get_maxunit(dc);
for (int index = 0; index < (max_em - 1); index++) {
device_t dev;
dev = devclass_get_device(dc, index);
if (device_get_driver(dev) == &em_driver) {
struct adapter *adapter = device_get_softc(dev);
em_if_init(adapter->ctx);
}
}
}
DB_COMMAND(em_dump_queue, em_ddb_dump_queue)
{
devclass_t dc;
int max_em;
dc = devclass_find("em");
max_em = devclass_get_maxunit(dc);
for (int index = 0; index < (max_em - 1); index++) {
device_t dev;
dev = devclass_get_device(dc, index);
if (device_get_driver(dev) == &em_driver)
em_print_debug_info(device_get_softc(dev));
}
}
#endif