Browse Source

Fixing conversion specifiers in accordance with the type of expressions.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Sergey Gusarov 13 years ago
parent
commit
e0366dac97
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/check.c

+ 2 - 2
src/check.c

@@ -381,7 +381,7 @@ static void auto_rename(DOS_FILE * file)
     number = 0;
     while (1) {
 	char num[8];
-	sprintf(num, "%07d", number);
+	sprintf(num, "%07lu", number);
 	memcpy(file->dir_ent.name, "FSCK", 4);
 	memcpy(file->dir_ent.name + 4, num, 4);
 	memcpy(file->dir_ent.ext, num + 4, 3);
@@ -626,7 +626,7 @@ static int check_file(DOS_FS * fs, DOS_FILE * file)
 	(unsigned long long)clusters * fs->cluster_size) {
 	printf
 	    ("%s\n  File size is %u bytes, cluster chain length is %llu bytes."
-	     "\n  Truncating file to %lu bytes.\n", path_name(file),
+	     "\n  Truncating file to %llu bytes.\n", path_name(file),
 	     CF_LE_L(file->dir_ent.size),
 	     (unsigned long long)clusters * fs->cluster_size,
 	     (unsigned long long)clusters * fs->cluster_size);