From cc67a2a72b7b9eb1477c7afdff2ab4409689bb05 Mon Sep 17 00:00:00 2001 From: "graham.gower" Date: Fri, 27 Nov 2009 00:41:28 +0000 Subject: [PATCH] Add __FUNCTION__ to the error mesage. git-svn-id: http://opkg.googlecode.com/svn/trunk@389 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/pkg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2