sprintf_alloc(&tmp_file_location, "%s/%s", conf->tmp_dir, src_base);
err = unlink(tmp_file_location);
if (err && errno != ENOENT) {
- opkg_perror(ERROR, "Failed to unlink %s\n", tmp_file_location);
+ opkg_perror(ERROR, "Failed to unlink %s", tmp_file_location);
free(tmp_file_location);
return -1;
}
pkg->dest->info_dir, pkg->name);
list_file = fopen(list_file_name, "r");
if (list_file == NULL) {
- opkg_perror(ERROR, "Failed to open %s.\n",
+ opkg_perror(ERROR, "Failed to open %s",
list_file_name);
free(list_file_name);
return pkg->installed_files;