Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2010-01-27T21:44:52Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
1ccafee
Parents:
b79d450
Message:

Implement some of C99 inttypes.h header (formatting macros for stdint.h). Use in appropriate places. Also replace use of 0x%lx with %p.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/part/guid_part/guid_part.c

    rb79d450 rfb6f1a5  
    5454#include <devmap.h>
    5555#include <sys/types.h>
     56#include <inttypes.h>
    5657#include <libblock.h>
    5758#include <devmap.h>
     
    196197                size_mb = (part->length * block_size + 1024 * 1024 - 1)
    197198                    / (1024 * 1024);
    198                 printf(NAME ": Registered device %s: %llu blocks %llu MB.\n",
    199                     name, part->length, size_mb);
     199                printf(NAME ": Registered device %s: %" PRIu64 " blocks "
     200                    "%" PRIu64 " MB.\n", name, (uint64_t) part->length, size_mb);
    200201
    201202                part->dev = dev;
Note: See TracChangeset for help on using the changeset viewer.