diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2017-12-19 15:30:53 +0100 |
---|---|---|
committer | Dimitri Staessens <dimitri.staessens@ugent.be> | 2017-12-19 15:30:53 +0100 |
commit | 280c08a3c63302805c3a2f1a7c81e7f80d4e226a (patch) | |
tree | 48325081ae0acfaff8defff329824c13e9f45765 | |
parent | 70d318b2ea16bdd5b713d3b5a57047638b36f5ab (diff) | |
download | raptor-280c08a3c63302805c3a2f1a7c81e7f80d4e226a.tar.gz raptor-280c08a3c63302805c3a2f1a7c81e7f80d4e226a.zip |
linux: Remove full stops from kernel logs
Kernel log messages are usually not terminated with a full stop. This
also re-adds logs when the driver is loaded/unloaded.
-rw-r--r-- | linux/raptor.c | 37 |
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); |