hal: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Tue Oct 10 18:11:44 PDT 2006


 hald/device_info.c |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

New commits:
diff-tree e6b0bd21ae250d6d589e2584fd624b7bd2fa6835 (from 9aa082592ee8fa3c33539bda2e0226c12880d30a)
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Oct 10 21:11:39 2006 -0400

    comment out some debugging spew from fdi matching
    
    We really need a modularized logging system Real Soon Now(tm).

diff --git a/hald/device_info.c b/hald/device_info.c
index fe5ac98..9ff8ba8 100644
--- a/hald/device_info.c
+++ b/hald/device_info.c
@@ -153,6 +153,7 @@ rule_type get_rule_type (const char *str
 	return RULE_UNKNOWN;
 }
 
+/*
 static char *
 get_rule_type_str (enum rule_type type)
 {
@@ -178,6 +179,7 @@ get_rule_type_str (enum rule_type type)
 	}
 	return "invalid rule type";
 }
+*/
 
 static enum
 merge_type get_merge_type (const char *str)
@@ -201,6 +203,7 @@ merge_type get_merge_type (const char *s
 	return MERGE_UNKNOWN;
 }
 
+/*
 static char *
 get_merge_type_str (enum merge_type type)
 {
@@ -226,6 +229,7 @@ get_merge_type_str (enum merge_type type
 	}
 	return "invalid merge type";
 }
+*/
 
 static enum
 match_type get_match_type(const char *str)
@@ -261,6 +265,7 @@ match_type get_match_type(const char *st
 	return MATCH_UNKNOWN;
 }
 
+/*
 static char *
 get_match_type_str (enum match_type type)
 {
@@ -298,6 +303,7 @@ get_match_type_str (enum match_type type
 	}
 	return "invalid match type";
 }
+*/
 
 /** Resolve a udi-property path as used in .fdi files.
  *
@@ -1296,9 +1302,9 @@ rules_match_and_merge_device (GSList *fd
 		switch (rule->rtype) {
 		case RULE_MATCH:
 			/* skip non-matching rules block */
-			HAL_INFO(("%p match '%s' at %s", rule, rule->key, hal_device_get_udi (d)));
+			/*HAL_INFO(("%p match '%s' at %s", rule, rule->key, hal_device_get_udi (d)));*/
 			if (!handle_match (rule, d)) {
-				HAL_INFO(("no match, skip to rule %s (%p)", get_rule_type_str (rule->next_rule->rtype), rule->next_rule));
+				/*HAL_INFO(("no match, skip to rule %s (%p)", get_rule_type_str (rule->next_rule->rtype), rule->next_rule));*/
 				elem = g_slist_find (elem, rule->next_rule);
 				continue;
 			}
@@ -1310,12 +1316,12 @@ rules_match_and_merge_device (GSList *fd
 		case RULE_CLEAR:
 		case RULE_SPAWN:
 		case RULE_MERGE:
-			HAL_INFO(("%p merge '%s' at %s", rule, rule->key, hal_device_get_udi (d)));
+			/*HAL_INFO(("%p merge '%s' at %s", rule, rule->key, hal_device_get_udi (d)));*/
 			handle_merge (rule, d);
 			break;
 
 		case RULE_EOF:
-			HAL_INFO(("%p fdi file '%s' finished", rule, rule->key));
+			/*HAL_INFO(("%p fdi file '%s' finished", rule, rule->key));*/
 			break;
 
 		default:
@@ -1332,17 +1338,17 @@ di_search_and_merge (HalDevice *d, Devic
 {
 	switch (type) {
 	case DEVICE_INFO_TYPE_PREPROBE:
-		HAL_INFO(("apply fdi preprobe to device %p", d));
+		/*HAL_INFO(("apply fdi preprobe to device %p", d));*/
 		rules_match_and_merge_device (fdi_rules_preprobe, d);
 		break;
 
 	case DEVICE_INFO_TYPE_INFORMATION:
-		HAL_INFO(("apply fdi info to device %p", d));
+		/*HAL_INFO(("apply fdi info to device %p", d));*/
 		rules_match_and_merge_device (fdi_rules_information, d);
 		break;
 
 	case DEVICE_INFO_TYPE_POLICY:
-		HAL_INFO(("apply fdi policy to device %p", d));
+		/*HAL_INFO(("apply fdi policy to device %p", d));*/
 		rules_match_and_merge_device (fdi_rules_policy, d);
 		break;
 


More information about the hal-commit mailing list