From cc67a2a72b7b9eb1477c7afdff2ab4409689bb05 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 26 Nov 2009 19:41:28 -0500 Subject: Add __FUNCTION__ to the error mesage. git-svn-id: http://opkg.googlecode.com/svn/trunk@389 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/pkg.c b/libopkg/pkg.c index be25c5c..278b727 100644 --- a/libopkg/pkg.c +++ b/libopkg/pkg.c @@ -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; } -- cgit v0.9.1