pkg_size_kbs = (pkg->installed_size + 1023)/1024;
if (pkg_size_kbs >= kbs_available) {
- opkg_msg(ERROR, "Only have %dkb available on filesystem %s, "
- "pkg %s needs %d\n",
+ opkg_msg(ERROR, "Only have %ldkb available on filesystem %s, "
+ "pkg %s needs %ld\n",
kbs_available, root_dir, pkg->name, pkg_size_kbs);
return -1;
}
}
if (!conf->noaction) {
- opkg_msg(INFO, "Deleting %s.\n", file_name, conf->noaction);
+ opkg_msg(INFO, "Deleting %s.\n", file_name);
unlink(file_name);
} else
opkg_msg(INFO, "Not deleting %s. (noaction)\n",
fp = fopen(file_name, "r");
if (fp == NULL) {
- opkg_perror(ERROR, "Failed to open %s");
+ opkg_perror(ERROR, "Failed to open %s", file_name);
free(file_name);
return;
}