kernel - Reduce dsched console output
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 21 Mar 2011 21:36:24 +0000 (14:36 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 21 Mar 2011 21:36:24 +0000 (14:36 -0700)
* Only print out 'No policy for ...' messages if bootverbose is set.

sys/kern/kern_dsched.c

index fdc3bb9..f3eeb0c 100644 (file)
@@ -161,9 +161,11 @@ dsched_disk_create_callback(struct disk *dp, const char *head_name, int unit)
        }
 
        if (!policy) {
-               if (!default_set) {
-                       dsched_debug(0, "No policy for %s%d specified, "
-                           "or policy not found\n", head_name, unit);
+               if (!default_set && bootverbose) {
+                       dsched_debug(0,
+                                    "No policy for %s%d specified, "
+                                    "or policy not found\n",
+                                    head_name, unit);
                }
                dsched_set_policy(dp, default_policy);
        } else {