diff options
author | Nick Pelly <npelly@google.com> | 2011-06-24 17:54:56 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-06-27 09:41:59 -0700 |
commit | 8d4d6a13c4c3bf4e966d12297cc9a9f6cf9d42a8 (patch) | |
tree | 1e4efeefb888534f8b33964235f6825e23ee39e5 /src/phHal4Nfc.c | |
parent | fafed3cea5231f76bcebbe95b9d3b7c2ca69483d (diff) | |
download | external_libnfc-nxp-8d4d6a13c4c3bf4e966d12297cc9a9f6cf9d42a8.zip external_libnfc-nxp-8d4d6a13c4c3bf4e966d12297cc9a9f6cf9d42a8.tar.gz external_libnfc-nxp-8d4d6a13c4c3bf4e966d12297cc9a9f6cf9d42a8.tar.bz2 |
Print warning if no FW file found.
Change-Id: Id1ab6a1176fe4e7c559e2348261d0902bdffb03c
Diffstat (limited to 'src/phHal4Nfc.c')
-rw-r--r-- | src/phHal4Nfc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/phHal4Nfc.c b/src/phHal4Nfc.c index 399cb3e..e103525 100644 --- a/src/phHal4Nfc.c +++ b/src/phHal4Nfc.c @@ -302,15 +302,17 @@ phHal4Nfc_Configure_Layers( #include <utils/Log.h> #include <dlfcn.h> +#define FW_PATH "/system/vendor/firmware/libpn544_fw.so" + const unsigned char *nxp_nfc_full_version = NULL; const unsigned char *nxp_nfc_fw = NULL; int dlopen_firmware() { void *p; - void *handle = dlopen("/system/vendor/firmware/libpn544_fw.so", RTLD_NOW); + void *handle = dlopen(FW_PATH, RTLD_NOW); if (handle == NULL) { - LOGE("Could not open libpn544.so"); + LOGE("Could not open %s", FW_PATH); return -1; } |