aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorokan2016-10-24 17:39:38 +0000
committerokan2016-10-24 17:39:38 +0000
commit0a160ce39b2682a3682e54a6aa8937d852c1adb1 (patch)
tree8487c4d1cbcf0b34fdc76f9574d45199d816d1c5 /search.c
parent2e42cacbc2852535c15f8a6b7aaa7078d073ca26 (diff)
downloadcwm-0a160ce39b2682a3682e54a6aa8937d852c1adb1.tar.gz
Sprinkle __func__ in appropriate error messages.
Diffstat (limited to 'search.c')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index 9b1bfc1..f723801 100644
--- a/search.c
+++ b/search.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: search.c,v 1.55 2016/10/24 17:16:23 okan Exp $
+ * $OpenBSD: search.c,v 1.56 2016/10/24 17:39:38 okan Exp $
*/
#include <sys/types.h>
@@ -85,7 +85,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
tier--;
if (tier >= nitems(tierp))
- errx(1, "search_match_client: invalid tier");
+ errx(1, "%s: invalid tier", __func__);
/*
* If you have a tierp, insert after it, and make it