Author: adrian.chadd
Date: Fri Jul 17 00:23:35 2009
New Revision: 14205

Modified:
    playpen/LUSCA_HEAD_storework/app/coss_rebuild/coss_build_dir.c

Log:
Twiddle debugging output.



Modified: playpen/LUSCA_HEAD_storework/app/coss_rebuild/coss_build_dir.c
==============================================================================
--- playpen/LUSCA_HEAD_storework/app/coss_rebuild/coss_build_dir.c       
(original)
+++ playpen/LUSCA_HEAD_storework/app/coss_rebuild/coss_build_dir.c      Fri Jul 
 
17 00:23:35 2009
@@ -81,7 +81,7 @@

        buf = malloc(stripesize);
        if (! buf) {
-               debug(1, 1) ("%s: couldn't allocated %d bytes for rebuild 
buffer:  
(%d) %s\n", file, stripesize, errno, xstrerror());
+               debug(85, 1) ("%s: couldn't allocated %d bytes for rebuild 
buffer:  
(%d) %s\n", file, stripesize, errno, xstrerror());
                return 0;
        }

@@ -94,14 +94,14 @@
        for(blksize_bits = 0;((blocksize >> blksize_bits) > 0);blksize_bits++) {
                if( ((blocksize >> blksize_bits) > 0) &&
                  (((blocksize >> blksize_bits) << blksize_bits) != blocksize)) 
{
-                       debug(1, 1) ("%s: Blocksize bits (%d) must be a power 
of 2\n", file,  
blksize_bits);
+                       debug(85, 1) ("%s: Blocksize bits (%d) must be a power 
of 2\n", file,  
blksize_bits);
                        safe_free(buf);
                        return(0);
                }
        }

        while ((len = read(fd, buf, stripesize)) > 0) {
-               printf("STRIPE: %d (len %d)\n", i, len);
+               debug(85, 5) ("STRIPE: %d (len %d)\n", i, len);
                parse_stripe(i, buf, len, blocksize, stripesize);
                i++;
                if((numstripes > 0) && (i >= numstripes))

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to