Revision: 14238
Author: adrian.chadd
Date: Thu Jul 23 02:39:47 2009
Log: Use fwrite() for the log write path too


http://code.google.com/p/lusca-cache/source/detail?r=14238

Modified:
  /playpen/LUSCA_HEAD_store_clean_log_rework/app/ufs_rebuild/ufs_build_log.c

=======================================
---  
/playpen/LUSCA_HEAD_store_clean_log_rework/app/ufs_rebuild/ufs_build_log.c      
 
Wed Jul 22 07:37:20 2009
+++  
/playpen/LUSCA_HEAD_store_clean_log_rework/app/ufs_rebuild/ufs_build_log.c      
 
Thu Jul 23 02:39:47 2009
@@ -93,7 +93,7 @@
        /* is it an ADD/DEL? Good. If not - count error and continue */
        if (sd.op == SWAP_LOG_ADD || sd.op == SWAP_LOG_DEL) {
                num_valid_objects++;
-               if (write(1, &sd, sizeof(sd)) <= 0) {
+               if (fwrite(&sd, sizeof(sd), 1, stdout) != 1) {
                        debug(47, 1) ("write failed: (%d) %s\n", errno, 
xstrerror());
                        return 0;
                }

--~--~---------~--~----~------------~-------~--~----~
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