Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc1 /lib/kobject_uevent.c

Filename:/lib/kobject_uevent.c
Lines Added:9
Lines Deleted:7
Also changed in: (Previous) 2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25-git17  2.6.25-git16  2.6.25-git15 
(Following) 2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5  2.6.26-rc6  2.6.26-rc7 

Location
[  2.6.26-rc1
  [  lib
     o  kobject_uevent.c

Patch

diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 5b6d7f6..2fa545a 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -15,11 +15,13 @@
  */
 
 #include <linux/spinlock.h>
+#include <linux/string.h>
+#include <linux/kobject.h>
+#include <linux/module.h>
+
 #include <linux/socket.h>
 #include <linux/skbuff.h>
 #include <linux/netlink.h>
-#include <linux/string.h>
-#include <linux/kobject.h>
 #include <net/sock.h>
 
 
@@ -99,7 +101,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
    int retval = 0;
 
    pr_debug("kobject: '%s' (%p): %s\n",
-       kobject_name(kobj), kobj, __FUNCTION__);
+       kobject_name(kobj), kobj, __func__);
 
    /* search the kset we belong to */
    top_kobj = kobj;
@@ -109,7 +111,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
    if (!top_kobj->kset) {
       pr_debug("kobject: '%s' (%p): %s: attempted to send uevent "
           "without kset!\n", kobject_name(kobj), kobj,
-          __FUNCTION__);
+          __func__);
       return -EINVAL;
    }
 
@@ -121,7 +123,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
       if (!uevent_ops->filter(kset, kobj)) {
          pr_debug("kobject: '%s' (%p): %s: filter function "
              "caused the event to drop!\n",
-             kobject_name(kobj), kobj, __FUNCTION__);
+             kobject_name(kobj), kobj, __func__);
          return 0;
       }
 
@@ -133,7 +135,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
    if (!subsystem) {
       pr_debug("kobject: '%s' (%p): %s: unset subsystem caused the "
           "event to drop!\n", kobject_name(kobj), kobj,
-          __FUNCTION__);
+          __func__);
       return 0;
    }
 
@@ -175,7 +177,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
       if (retval) {
          pr_debug("kobject: '%s' (%p): %s: uevent() returned "
              "%d\n", kobject_name(kobj), kobj,
-             __FUNCTION__, retval);
+             __func__, retval);
          goto exit;
       }
    }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.