From: graham.gower Date: Fri, 27 Nov 2009 00:41:28 +0000 (+0000) Subject: Add __FUNCTION__ to the error mesage. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cc67a2a72b7b9eb1477c7afdff2ab4409689bb05;p=oweals%2Fopkg-lede.git 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; }