From 9a23b17f3774da835d998e4150ebf84de24309e5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 16 Aug 2010 15:02:42 +0000 Subject: [PATCH] include the file name we are searching when issuing an "unknown" field error during part detection git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1825 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 5 +++++ urjtag/src/tap/detect.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 0d2ac7b9..d7245358 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,8 @@ +2010-08-16 Mike Frysinger + + * src/tap/detect.c (urj_tap_detect_parts): Include paths to data files when + issuing "unknown" messages. + 2010-08-14 Mike Frysinger * configure.ac: Add autodetection of inpout32. diff --git a/urjtag/src/tap/detect.c b/urjtag/src/tap/detect.c index 6206be41..6e92a291 100644 --- a/urjtag/src/tap/detect.c +++ b/urjtag/src/tap/detect.c @@ -329,9 +329,9 @@ urj_tap_detect_parts (urj_chain_t *chain, const char *db_path) memcpy (key->data, &id->data[1], key->len); if (!find_record (data_path, key, &idr)) { - urj_log (URJ_LOG_LEVEL_NORMAL, " %s (%s)\n", + urj_log (URJ_LOG_LEVEL_NORMAL, " %s (%s) (%s)\n", _("Unknown manufacturer!"), - urj_tap_register_get_string (key)); + urj_tap_register_get_string (key), data_path); urj_tap_register_free (key); continue; } @@ -359,9 +359,9 @@ urj_tap_detect_parts (urj_chain_t *chain, const char *db_path) memcpy (key->data, &id->data[12], key->len); if (!find_record (data_path, key, &idr)) { - urj_log (URJ_LOG_LEVEL_NORMAL, " %s (%s)\n", + urj_log (URJ_LOG_LEVEL_NORMAL, " %s (%s) (%s)\n", _("Unknown part!"), - urj_tap_register_get_string (key)); + urj_tap_register_get_string (key), data_path); urj_tap_register_free (key); continue; } @@ -389,9 +389,9 @@ urj_tap_detect_parts (urj_chain_t *chain, const char *db_path) memcpy (key->data, &id->data[28], key->len); if (!find_record (data_path, key, &idr)) { - urj_log (URJ_LOG_LEVEL_NORMAL, " %s (%s)\n", + urj_log (URJ_LOG_LEVEL_NORMAL, " %s (%s) (%s)\n", _("Unknown stepping!"), - urj_tap_register_get_string (key)); + urj_tap_register_get_string (key), data_path); urj_tap_register_free (key); continue; }