Fix formatting issues found with the last commit.
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 19 Nov 2010 06:19:25 +0000 (06:19 +0000)
committergraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 19 Nov 2010 06:19:25 +0000 (06:19 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@585 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_install.c
libopkg/opkg_remove.c
libopkg/pkg.c

index eaa1edc0aa0d662cfb473b0e814f97c27839fb66..68c17b37f0507da8193b541e64d85689b29226ef 100644 (file)
@@ -204,8 +204,8 @@ verify_pkg_installable(pkg_t *pkg)
        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;
        }
index 1ed2dabdf87c8e4d64de3f6d7d8def42a965c90b..e2a63e1225c6131c4a1c95d9fd364f820ba1e5f9 100644 (file)
@@ -363,7 +363,7 @@ remove_data_files_and_list(pkg_t *pkg)
          }
 
          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",
index 1606eaa91e7889e13c3c8711d191ab4a075ec4d9..235741e33dfa0e92c88064d34ca28076b35e78ab 100644 (file)
@@ -462,7 +462,7 @@ set_flags_from_control(pkg_t *pkg){
 
      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;
      }