From 637bae322273dc7fb5a9c4c024aef6c10bc71ab0 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 23 Jul 2008 17:38:42 -0700 Subject: [PATCH] Make OpenFlow kernel module print protocol version. --- datapath/datapath.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 10fac545..d68151d0 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -1714,19 +1714,12 @@ static void dp_uninit_netlink(void) genl_unregister_family(&dp_genl_family); } -#define DRV_NAME "openflow" -#define DRV_VERSION VERSION -#define DRV_DESCRIPTION "OpenFlow switching datapath implementation" -#define DRV_COPYRIGHT "Copyright (c) 2007, 2008 The Board of Trustees of The Leland Stanford Junior University" - - static int __init dp_init(void) { int err; - printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION "\n"); - printk(KERN_INFO DRV_NAME ": " VERSION" built on "__DATE__" "__TIME__"\n"); - printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n"); + printk("OpenFlow "VERSION", built "__DATE__" "__TIME__", " + "protocol 0x%02x\n", OFP_VERSION); err = flow_init(); if (err) @@ -1762,6 +1755,6 @@ static void dp_cleanup(void) module_init(dp_init); module_exit(dp_cleanup); -MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR(DRV_COPYRIGHT); +MODULE_DESCRIPTION("OpenFlow switching datapath"); +MODULE_AUTHOR("Copyright (c) 2007, 2008 The Board of Trustees of The Leland Stanford Junior University"); MODULE_LICENSE("GPL"); -- 2.30.2