mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
sdhci: use PRIx64 for uint64_t type
Fix compile time warnings, because of type mismatch for unsigned long long type. Signed-off-by: Sai Pavan Boddu <saipava@xilinx.com> Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
91288a58a5
commit
be9c5ddeab
@ -22,6 +22,7 @@
|
|||||||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include "hw/hw.h"
|
#include "hw/hw.h"
|
||||||
#include "sysemu/block-backend.h"
|
#include "sysemu/block-backend.h"
|
||||||
#include "sysemu/blockdev.h"
|
#include "sysemu/blockdev.h"
|
||||||
@ -719,7 +720,8 @@ static void sdhci_do_adma(SDHCIState *s)
|
|||||||
break;
|
break;
|
||||||
case SDHC_ADMA_ATTR_ACT_LINK: /* link to next descriptor table */
|
case SDHC_ADMA_ATTR_ACT_LINK: /* link to next descriptor table */
|
||||||
s->admasysaddr = dscr.addr;
|
s->admasysaddr = dscr.addr;
|
||||||
DPRINT_L1("ADMA link: admasysaddr=0x%lx\n", s->admasysaddr);
|
DPRINT_L1("ADMA link: admasysaddr=0x%" PRIx64 "\n",
|
||||||
|
s->admasysaddr);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
s->admasysaddr += dscr.incr;
|
s->admasysaddr += dscr.incr;
|
||||||
@ -727,7 +729,8 @@ static void sdhci_do_adma(SDHCIState *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dscr.attr & SDHC_ADMA_ATTR_INT) {
|
if (dscr.attr & SDHC_ADMA_ATTR_INT) {
|
||||||
DPRINT_L1("ADMA interrupt: admasysaddr=0x%lx\n", s->admasysaddr);
|
DPRINT_L1("ADMA interrupt: admasysaddr=0x%" PRIx64 "\n",
|
||||||
|
s->admasysaddr);
|
||||||
if (s->norintstsen & SDHC_NISEN_DMA) {
|
if (s->norintstsen & SDHC_NISEN_DMA) {
|
||||||
s->norintsts |= SDHC_NIS_DMA;
|
s->norintsts |= SDHC_NIS_DMA;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user