Changeset 5cde90f in mainline for uspace/app/mkfat/mkfat.c


Ignore:
Timestamp:
2010-02-19T17:16:46Z (14 years ago)
Author:
Pavel Rimsky <pavel@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
617652f
Parents:
b86d436 (diff), f41aa81 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Synchronizing with head (which has just been synchronized with this branch).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkfat/mkfat.c

    rb86d436 r5cde90f  
    4444#include <devmap.h>
    4545#include <byteorder.h>
     46#include <sys/types.h>
     47#include <sys/typefmt.h>
     48#include <inttypes.h>
    4649#include <errno.h>
    4750#include "fat.h"
     
    9598        size_t block_size;
    9699        char *endptr;
    97         bn_t dev_nblocks;
     100        aoff64_t dev_nblocks;
    98101
    99102        cfg.total_sectors = 0;
     
    157160                printf(NAME ": Warning, failed to obtain block device size.\n");
    158161        } else {
    159                 printf(NAME ": Block device has %llu blocks.\n", dev_nblocks);
     162                printf(NAME ": Block device has %" PRIuOFF64 " blocks.\n",
     163                    dev_nblocks);
    160164                cfg.total_sectors = dev_nblocks;
    161165        }
     
    232236static int fat_blocks_write(struct fat_params const *par, dev_handle_t handle)
    233237{
    234         bn_t addr;
     238        aoff64_t addr;
    235239        uint8_t *buffer;
    236240        int i;
Note: See TracChangeset for help on using the changeset viewer.