From 280c08a3c63302805c3a2f1a7c81e7f80d4e226a Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 19 Dec 2017 15:30:53 +0100 Subject: 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. --- linux/raptor.c | 37 +++++++++++++++++++++---------------- 1 file 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); -- cgit v1.2.3