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

Ignore:
Timestamp:
2010-01-27T22:22:09Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
0b9ac3c, a9bbe48d
Parents:
fb6f1a5
Message:

Add type formatting macros for HelenOS system types (sys/typefmt.h) and use in appropriate places.

File:
1 edited

Legend:

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

    rfb6f1a5 r1ccafee  
    6464#include <devmap.h>
    6565#include <sys/types.h>
     66#include <sys/typefmt.h>
    6667#include <inttypes.h>
    6768#include <libblock.h>
     
    248249                size_mb = (part->length * block_size + 1024 * 1024 - 1)
    249250                    / (1024 * 1024);
    250                 printf(NAME ": Registered device %s: %" PRIu64 " blocks "
    251                     "%" PRIu64 " MB.\n",
    252                     name, (uint64_t) part->length, size_mb);
     251                printf(NAME ": Registered device %s: %" PRIuBN " blocks "
     252                    "%" PRIu64 " MB.\n", name, part->length, size_mb);
    253253
    254254                part->dev = dev;
     
    336336                rc = block_read_direct(indev_handle, ba, 1, brb);
    337337                if (rc != EOK) {
    338                         printf(NAME ": Failed reading EBR block at %u.\n", ba);
     338                        printf(NAME ": Failed reading EBR block at %"
     339                            PRIu32 ".\n", ba);
    339340                        return rc;
    340341                }
Note: See TracChangeset for help on using the changeset viewer.