mtd:ramtron Use inttypes in printing macros
This commit is contained in:
parent
a61f70d571
commit
8f8befaa25
@ -41,6 +41,7 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -506,10 +507,10 @@ static inline int ramtron_readid(struct ramtron_dev_s *priv)
|
|||||||
UNUSED(manufacturer); /* Eliminate warnings when debug is off */
|
UNUSED(manufacturer); /* Eliminate warnings when debug is off */
|
||||||
UNUSED(memory); /* Eliminate warnings when debug is off */
|
UNUSED(memory); /* Eliminate warnings when debug is off */
|
||||||
|
|
||||||
finfo(
|
finfo("RAMTRON %s of size %" PRIu32 " bytes (mf:%02" PRIx16 " mem:%02"
|
||||||
"RAMTRON %s of size %d bytes (mf:%02x mem:%02x cap:%02x part:%02x)\n",
|
PRIx16 " cap:%02" PRIx16 " part:%02" PRIx16 ")\n",
|
||||||
priv->part->name, priv->part->size,
|
priv->part->name, priv->part->size, manufacturer, memory,
|
||||||
manufacturer, memory, capacity, part);
|
capacity, part);
|
||||||
|
|
||||||
priv->sectorshift = RAMTRON_EMULATE_SECTOR_SHIFT;
|
priv->sectorshift = RAMTRON_EMULATE_SECTOR_SHIFT;
|
||||||
priv->nsectors = priv->part->size /
|
priv->nsectors = priv->part->size /
|
||||||
@ -945,7 +946,7 @@ static int ramtron_ioctl(FAR struct mtd_dev_s *dev,
|
|||||||
geo->neraseblocks = priv->nsectors;
|
geo->neraseblocks = priv->nsectors;
|
||||||
ret = OK;
|
ret = OK;
|
||||||
|
|
||||||
finfo("blocksize: %d erasesize: %d neraseblocks: %d\n",
|
finfo("blocksize: %ld erasesize: %ld neraseblocks: %ld\n",
|
||||||
geo->blocksize, geo->erasesize, geo->neraseblocks);
|
geo->blocksize, geo->erasesize, geo->neraseblocks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user