Browse Source

Simple warning fix

git-svn-id: svn://svn.berlios.de/openocd/trunk@2507 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.2.0
duane 14 years ago
parent
commit
5627e841e3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/jtag/presto.c

+ 2
- 2
src/jtag/presto.c View File

@@ -239,7 +239,7 @@ static int presto_open_ftd2xx(char *req_serial)
LOG_DEBUG("FT_Open failed: %i", (int)presto->status); LOG_DEBUG("FT_Open failed: %i", (int)presto->status);
continue; continue;
} }
LOG_DEBUG("FTDI device %i open", i);
LOG_DEBUG("FTDI device %i open", (int)i);


if ((presto->status = FT_GetDeviceInfo(presto->handle, &device, &vidpid, if ((presto->status = FT_GetDeviceInfo(presto->handle, &device, &vidpid,
presto->serial, devname, NULL)) == FT_OK) presto->serial, devname, NULL)) == FT_OK)
@@ -251,7 +251,7 @@ static int presto_open_ftd2xx(char *req_serial)
else else
LOG_DEBUG("FT_GetDeviceInfo failed: %lu", presto->status); LOG_DEBUG("FT_GetDeviceInfo failed: %lu", presto->status);


LOG_DEBUG("FTDI device %i does not match, closing", i);
LOG_DEBUG("FTDI device %i does not match, closing", (int)i);
FT_Close(presto->handle); FT_Close(presto->handle);
presto->handle = (FT_HANDLE)INVALID_HANDLE_VALUE; presto->handle = (FT_HANDLE)INVALID_HANDLE_VALUE;
} }


Loading…
Cancel
Save