Add __FUNCTION__ to the error mesage.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 27 Nov 2009 00:41:28 +0000 (00:41 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 27 Nov 2009 00:41:28 +0000 (00:41 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@389 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/pkg.c

index be25c5c..278b727 100644 (file)
@@ -478,8 +478,8 @@ set_flags_from_control(opkg_conf_t *conf, pkg_t *pkg){
 
      fp = fopen(file_name, "r");
      if (fp == NULL) {
-            opkg_message(conf, OPKG_ERROR, "fopen(%s): %s\n",
-                            file_name, strerror(errno));
+            opkg_message(conf, OPKG_ERROR, "%s: fopen(%s): %s\n",
+                            __FUNCTION__, file_name, strerror(errno));
             free(file_name);
             return;
      }