Changes by: cha0smaster
Update of /cvsroot/linux-ntfs/ntfsprogs/libntfs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3203/libntfs
Modified Files:
index.c logfile.c
Log Message:
minor cleanup
Index: index.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/index.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -r1.18 -r1.19
--- index.c 24 Oct 2005 20:50:05 -0000 1.18
+++ index.c 27 Oct 2005 20:42:10 -0000 1.19
@@ -636,8 +636,9 @@ int ntfs_index_rm(ntfs_index_context *ic
if (ntfs_attr_truncate(na, new_index_length + offsetof(
INDEX_ROOT, index))) {
err = errno;
- ntfs_log_error("Failed to truncate INDEX_ROOT attribute. "
- " Leaving inconsist metadata.");
+ ntfs_log_error("Failed to truncate INDEX_ROOT "
+ "attribute. Leaving inconsist "
+ "metadata.");
goto err_out;
}
ntfs_attr_close(na);
Index: logfile.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/logfile.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- logfile.c 26 Oct 2005 22:54:57 -0000 1.13
+++ logfile.c 27 Oct 2005 20:42:10 -0000 1.14
@@ -606,13 +606,13 @@ is_empty:
*/
if (rstr2_lsn > rstr1_lsn) {
ntfs_log_debug("Using second restart page as it is more "
- "recent.");
+ "recent.\n");
free(rstr1_ph);
rstr1_ph = rstr2_ph;
/* rstr1_lsn = rstr2_lsn; */
} else {
ntfs_log_debug("Using first restart page as it is more "
- "recent.");
+ "recent.\n");
free(rstr2_ph);
}
rstr2_ph = NULL;
@@ -721,7 +721,8 @@ int ntfs_empty_logfile(ntfs_attr *na)
/* Get length of $LogFile contents. */
len = na->data_size;
if (!len) {
- ntfs_log_debug("$LogFile has zero length, no disk write needed.\n");
+ ntfs_log_debug("$LogFile has zero length, no disk write "
+ "needed.\n");
return 0;
}
@@ -734,8 +735,8 @@ int ntfs_empty_logfile(ntfs_attr *na)
if (count == -1 || pos != len) {
err = errno;
- ntfs_log_debug("Amount of $LogFile data read does not correspond to "
- "expected length!");
+ ntfs_log_debug("Amount of $LogFile data read does not "
+ "correspond to expected length!\n");
if (count != -1)
err = EIO;
goto io_error_exit;
@@ -752,7 +753,8 @@ int ntfs_empty_logfile(ntfs_attr *na)
if ((count = ntfs_attr_pwrite(na, pos, count, buf)) <= 0) {
err = errno;
- ntfs_log_debug("Failed to set the $LogFile attribute value.\n");
+ ntfs_log_debug("Failed to set the $LogFile attribute "
+ "value.\n");
if (count != -1)
err = EIO;
goto io_error_exit;
|