OSSP CVS Repository

ossp - Check-in [2286]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2286
Date: 2002-Jul-16 15:36:26 (local)
2002-Jul-16 13:36:26 (UTC)
User:thl
Branch:
Comment: dump types also
Tickets:
Inspections:
Files:
ossp-pkg/fsl/fsl.c      1.3 -> 1.4     4 inserted, 1 deleted

ossp-pkg/fsl/fsl.c 1.3 -> 1.4

--- fsl.c        2002/07/16 13:20:33     1.3
+++ fsl.c        2002/07/16 13:36:26     1.4
@@ -144,13 +144,16 @@
     int rc;
     cfg_node_t *cfgchld;
     cfg_rc_t cfgrv;
+    cfg_node_type_t cfgtyp;
     char *cp;
 
     fprintf(stderr, "DEBUG: diving\n");
     while (cfgnode != NULL) {
         if ((cfgrv = cfg_node_get(cfg, cfgnode, CFG_NODE_ATTR_TOKEN, &cp)) != CFG_OK) {
             (void)cfg_error(cfg, cfgrv, &cp); fprintf(stderr, "ERROR: cfg_node_get(T) failed with error %s (%d)\n", cp, cfgrv); CU(1); }
-        fprintf(stderr, "DEBUG: cfgnode=0x%.8lx, *cp=\"%s\"\n", (unsigned long)cfgnode, cp);
+        if ((cfgrv = cfg_node_get(cfg, cfgnode, CFG_NODE_ATTR_TYPE, &cfgtyp)) != CFG_OK) {
+            (void)cfg_error(cfg, cfgrv, &cp); fprintf(stderr, "ERROR: cfg_node_get(y) failed with error %s (%d)\n", cp, cfgrv); CU(1); }
+        fprintf(stderr, "DEBUG: cfgnode=0x%.8lx, *cp=\"%s\", type=%d\n", (unsigned long)cfgnode, cp, cfgtyp);
         if ((cfgrv = cfg_node_get(cfg, cfgnode, CFG_NODE_ATTR_CHILD1, &cfgchld)) != CFG_OK) {
             (void)cfg_error(cfg, cfgrv, &cp); fprintf(stderr, "ERROR: cfg_node_get(C) failed with error %s (%d)\n", cp, cfgrv); CU(1); }
         if (cfgchld != NULL)

CVSTrac 2.0.1