Code

move debug statements to separate lines
authordaryder <daryder@cisco.com>
Wed, 15 Oct 2014 12:50:52 +0000 (08:50 -0400)
committerdaryder <daryder@cisco.com>
Wed, 15 Oct 2014 12:50:52 +0000 (08:50 -0400)
src/ceph.c

index 4ca24cc91d408575b2e50dc5fb1bdc3b18d94c9f..06d57af666349d0d5b09042fa28515e69c9ad85e 100644 (file)
@@ -950,7 +950,8 @@ static int node_handler_fetch_data(void *arg, const char *val, const char *key)
     memset(ds_name, 0, sizeof(ds_name));
     if(parse_keys(key, dset_name, ds_name))
     {
-        return 1;DEBUG("enter node_handler_fetch_data");
+        DEBUG("enter node_handler_fetch_data");
+        return 1;
     }
     dset_idx = get_matching_dset(vtmp->d, dset_name);
     if(dset_idx == -1)
@@ -961,8 +962,9 @@ static int node_handler_fetch_data(void *arg, const char *val, const char *key)
             vtmp->d->dset[dset_idx].ds_num);
     if(ds_idx == -1)
     {
-        return RETRY_AVGCOUNT;DEBUG("DSet:%s, DS:%s, DSet idx:%d, DS idx:%d",
+        DEBUG("DSet:%s, DS:%s, DSet idx:%d, DS idx:%d",
             dset_name,ds_name,dset_idx,ds_idx);
+        return RETRY_AVGCOUNT;
     }
     uv = &(vtmp->vh[dset_idx].values[ds_idx]);