Reformat; fix a warning.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 26 Sep 2008 16:04:42 +0000 (16:04 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 26 Sep 2008 16:04:42 +0000 (16:04 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1856 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/fs/battfs.c

index 77cc57f0eaf8409e9d9ca42a40f7d1a6ac90fe1d..9e3ea4eedef65e487d014a173db4a36efa40582c 100644 (file)
@@ -620,7 +620,7 @@ static bool getNewPage(struct BattFsSuper *disk, pgcnt_t new_pos, inode_t inode,
        disk->cache_dirty = true;
 
        new_hdr->inode = inode;
-       new_hdr->pgoff =  pgoff;
+       new_hdr->pgoff = pgoff;
        new_hdr->fill = 0;
        new_hdr->seq = 0;
        return setBufferHdr(disk, new_hdr);
@@ -717,7 +717,7 @@ static size_t battfs_write(struct KFile *fd, const void *_buf, size_t size)
                /* Handle write outside EOF */
                if (pg_offset > fdb->max_off)
                {
-                       LOG_INFO("New page needed, pg_offset %d, pos %d\n", pg_offset, (fdb->start - disk->page_array) + pg_offset);
+                       LOG_INFO("New page needed, pg_offset %d, pos %d\n", pg_offset, (int)((fdb->start - disk->page_array) + pg_offset));
                        if (!getNewPage(disk, (fdb->start - disk->page_array) + pg_offset, fdb->inode, pg_offset, &curr_hdr))
                                return total_write;
                        fdb->max_off = pg_offset;