Changeset a7e8996 in rtems for cpukit/libdrvmgr/drvmgr_print.c


Ignore:
Timestamp:
Dec 21, 2018, 8:09:53 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
956d76cc
Parents:
6073c71d
git-author:
Sebastian Huber <sebastian.huber@…> (12/21/18 20:09:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/27/18 08:00:59)
Message:

drvmgr: Improve LP64 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdrvmgr/drvmgr_print.c

    r6073c71d ra7e8996  
    1414 */
    1515
     16#include <inttypes.h>
    1617#include <stdio.h>
    1718#include <stdlib.h>
     
    7980}
    8081
    81 static int drvmgr_topo_func(struct drvmgr_dev *dev, void *arg)
     82static intptr_t drvmgr_topo_func(struct drvmgr_dev *dev, void *arg)
    8283{
    8384        char prefix[32];
     
    342343        /* Print Driver */
    343344        printf(" -- DRIVER %p --\n", drv);
    344         printf("  DRIVER ID:   0x%llx\n", drv->drv_id);
     345        printf("  DRIVER ID:   0x%" PRIx64 "\n", drv->drv_id);
    345346        printf("  NAME:        %s\n", drv->name ? drv->name : "NO_NAME");
    346347        printf("  BUS TYPE:    %d\n", drv->bus_type);
Note: See TracChangeset for help on using the changeset viewer.