Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a6db9010922f2c02db2bbea8c17c50e451be38d9
Commit:     a6db9010922f2c02db2bbea8c17c50e451be38d9
Parent:     fea86ad8123df0d49188cbc1dd2f48da6ae49d65
Author:     Stephen Hemminger <[EMAIL PROTECTED]>
AuthorDate: Sat Jan 12 20:58:35 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:01:55 2008 -0800

    [IPV4] FIB: printk related cleanups
    
    printk related cleanups:
     * Get rid of unused printk wrappers.
     * Make bug checks into KERN_WARNING because KERN_DEBUG gets ignored
     * Turn one cryptic old message into something real
     * Make sure all messages have KERN_XXX
    
    Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/fib_frontend.c  |    6 ++----
 net/ipv4/fib_hash.c      |    3 ++-
 net/ipv4/fib_semantics.c |    7 +++----
 3 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 64421c5..02b5ff7 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -47,8 +47,6 @@
 #include <net/ip_fib.h>
 #include <net/rtnetlink.h>
 
-#define FFprint(a...) printk(KERN_DEBUG a)
-
 #ifndef CONFIG_IP_MULTIPLE_TABLES
 
 static int __net_init fib4_rules_init(struct net *net)
@@ -706,7 +704,7 @@ void fib_add_ifaddr(struct in_ifaddr *ifa)
        if (ifa->ifa_flags&IFA_F_SECONDARY) {
                prim = inet_ifa_byprefix(in_dev, prefix, mask);
                if (prim == NULL) {
-                       printk(KERN_DEBUG "fib_add_ifaddr: bug: prim == 
NULL\n");
+                       printk(KERN_WARNING "fib_add_ifaddr: bug: prim == 
NULL\n");
                        return;
                }
        }
@@ -753,7 +751,7 @@ static void fib_del_ifaddr(struct in_ifaddr *ifa)
        else {
                prim = inet_ifa_byprefix(in_dev, any, ifa->ifa_mask);
                if (prim == NULL) {
-                       printk(KERN_DEBUG "fib_del_ifaddr: bug: prim == 
NULL\n");
+                       printk(KERN_WARNING "fib_del_ifaddr: bug: prim == 
NULL\n");
                        return;
                }
        }
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c
index a073004..258214f 100644
--- a/net/ipv4/fib_hash.c
+++ b/net/ipv4/fib_hash.c
@@ -168,7 +168,8 @@ static void fn_rehash_zone(struct fn_zone *fz)
        new_hashmask = (new_divisor - 1);
 
 #if RT_CACHE_DEBUG >= 2
-       printk("fn_rehash_zone: hash for zone %d grows from %d\n", 
fz->fz_order, old_divisor);
+       printk(KERN_DEBUG "fn_rehash_zone: hash for zone %d grows from %d\n",
+              fz->fz_order, old_divisor);
 #endif
 
        ht = fz_hash_alloc(new_divisor);
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index 0de6102..3ed920b 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -47,8 +47,6 @@
 
 #include "fib_lookup.h"
 
-#define FSprintk(a...)
-
 static DEFINE_SPINLOCK(fib_info_lock);
 static struct hlist_head *fib_info_hash;
 static struct hlist_head *fib_info_laddrhash;
@@ -145,7 +143,7 @@ static const struct
 void free_fib_info(struct fib_info *fi)
 {
        if (fi->fib_dead == 0) {
-               printk("Freeing alive fib_info %p\n", fi);
+               printk(KERN_WARNING "Freeing alive fib_info %p\n", fi);
                return;
        }
        change_nexthops(fi) {
@@ -914,7 +912,8 @@ int fib_semantic_match(struct list_head *head, const struct 
flowi *flp,
                                continue;
 
                        default:
-                               printk(KERN_DEBUG "impossible 102\n");
+                               printk(KERN_WARNING "fib_semantic_match bad 
type %#x\n",
+                                       fa->fa_type);
                                return -EINVAL;
                        }
                }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to