summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/raptor.c37
1 files changed, 21 insertions, 16 deletions
diff --git a/linux/raptor.c b/linux/raptor.c
index ffa3bee..856ed71 100644
--- a/linux/raptor.c
+++ b/linux/raptor.c
@@ -364,22 +364,22 @@ static void read_debug(void)
done_count = endian64(raptor_read(25));
dev_info(raptor.device, "%s:\n", __func__);
- dev_info(raptor.device, " status = 0x%llx.\n", status);
- dev_info(raptor.device, " address = 0x%llx.\n", address);
- dev_info(raptor.device, " data = 0x%llx.\n", data);
- dev_info(raptor.device, " cmd = 0x%llx.\n", cmd);
- dev_info(raptor.device, " buff = 0x%llx.\n", buff);
- dev_info(raptor.device, " length = %llu.\n", length);
- dev_info(raptor.device, " cmpl_count = %llu.\n", cmpl_count);
- dev_info(raptor.device, " cmpl_data = 0x%llx.\n", cmpl_data);
- dev_info(raptor.device, " cmpl_tag = 0x%llx.\n", cmpl_tag);
- dev_info(raptor.device, " cmpl_state = 0x%llx.\n", cmpl_state);
- dev_info(raptor.device, " write_count = %llu.\n", write_count);
- dev_info(raptor.device, " write_length = %llu.\n", write_length);
- dev_info(raptor.device, " write_addr = 0x%llx.\n", write_addr);
- dev_info(raptor.device, " write_data = 0x%llx.\n", write_data);
- dev_info(raptor.device, " accept_count = %llu.\n", accept_count);
- dev_info(raptor.device, " done_count = %llu.\n", done_count);
+ dev_info(raptor.device, " status = 0x%llx\n", status);
+ dev_info(raptor.device, " address = 0x%llx\n", address);
+ dev_info(raptor.device, " data = 0x%llx\n", data);
+ dev_info(raptor.device, " cmd = 0x%llx\n", cmd);
+ dev_info(raptor.device, " buff = 0x%llx\n", buff);
+ dev_info(raptor.device, " length = %llu\n", length);
+ dev_info(raptor.device, " cmpl_count = %llu\n", cmpl_count);
+ dev_info(raptor.device, " cmpl_data = 0x%llx\n", cmpl_data);
+ dev_info(raptor.device, " cmpl_tag = 0x%llx\n", cmpl_tag);
+ dev_info(raptor.device, " cmpl_state = 0x%llx\n", cmpl_state);
+ dev_info(raptor.device, " write_count = %llu\n", write_count);
+ dev_info(raptor.device, " write_length = %llu\n", write_length);
+ dev_info(raptor.device, " write_addr = 0x%llx\n", write_addr);
+ dev_info(raptor.device, " write_data = 0x%llx\n", write_data);
+ dev_info(raptor.device, " accept_count = %llu\n", accept_count);
+ dev_info(raptor.device, " done_count = %llu\n", done_count);
}
#define get_send(status, i) ((status >> (i * 4 + 0)) & 0x3)
@@ -924,11 +924,16 @@ int init_module(void)
return -1;
}
+ dev_info(raptor.device, "Driver loaded\n");
+
return 0;
}
void cleanup_module(void)
{
+
+ dev_info(raptor.device, "Driver unloaded\n");
+
pci_unregister_driver(&pci_driver);
cdev_del(&raptor.cdev);