#include<ctype.h>
#include<stdlib.h>
#include<string.h>
+#include<stdint.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/statfs.h>
ulResult = SS_Link(NULL, pFsNode->file_new_path, pFsNode->patch_name);
if (ulResult != S_SS_SUCCESS) {
LOGE("SS_Link Failed, Linkname:[%s], reference file name, index = [%d]:[%s]\n",
- pFsNode->file_new_path, pFsNode->patch_name, ulFileIndex);
+ pFsNode->file_new_path, ulFileIndex, pFsNode->patch_name);
}
} else {
LOGE("Unlink Failed, result = [%d], index = [%d]\n", ulResult, ulFileIndex);
while (NULL != (ent = getmntent(aFile))) {
if (strcmp(ent->mnt_fsname, block_name) == 0) {
if (statfs(ent->mnt_dir, &sb) == 0)
- LOGL(LOG_SSENGINE, "Total free space = %ld, blocks free = %ld\n", sb.f_bsize * sb.f_bavail, sb.f_bfree);
+ LOGL(LOG_SSENGINE, "Total free space = %" PRIu64 ", blocks free = %" PRIu64 "\n", sb.f_bsize * sb.f_bavail, sb.f_bfree);
}
}
endmntent(aFile);
snprintf(name + strlen(name), sizeof(name) - strlen(name),
"%s", buff + PREFIX_INDICATOR_BYTE);
snprintf(dirPath, sizeof(dirPath), "%s/%s", path, name + folderpathlen);
- LOG(" File Name is longer than 100 bytes -Remaining Str [%s]\n Full Str[%s]\n", dirPath);
+ LOG(" File Name is longer than 100 bytes -Remaining Str [%s]\n Full Str[%s]\n", dirPath, fullname);
} else {
//LOG(" Extracting file %s\n", fullname);
memset(dirPath, 0, sizeof(dirPath));