diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-15 16:03:55 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-16 12:50:28 +0000 |
commit | dcc02b1003fb923a9eac439f28ae7c5329ea2580 (patch) | |
tree | ff2ae0d09b122b79ff48d0861c6ac6522ed9c2a3 /epan/dissectors/packet-epl-profile-parser.c | |
parent | 39df3ae3c0ff12da5f5630b89a147b65588cc4c2 (diff) |
dissectors: Replace g_log() with ws_log()
Diffstat (limited to 'epan/dissectors/packet-epl-profile-parser.c')
-rw-r--r-- | epan/dissectors/packet-epl-profile-parser.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/epan/dissectors/packet-epl-profile-parser.c b/epan/dissectors/packet-epl-profile-parser.c index 108516aba0..6168685cc5 100644 --- a/epan/dissectors/packet-epl-profile-parser.c +++ b/epan/dissectors/packet-epl-profile-parser.c @@ -29,6 +29,7 @@ #include <wsutil/strtoi.h> #include <wsutil/str_util.h> +#include <wsutil/wslog.h> #include <epan/wmem/wmem.h> #if defined HAVE_LIBXML2 @@ -201,7 +202,7 @@ epl_eds_load(struct profile *profile, const char *eds_file) /* Load EDS document */ if (!g_key_file_load_from_file(gkf, eds_file, G_KEY_FILE_NONE, &err)){ - g_log(NULL, G_LOG_LEVEL_WARNING, "Error: unable to parse file \"%s\"\n", eds_file); + ws_log(NULL, LOG_LEVEL_WARNING, "Error: unable to parse file \"%s\"\n", eds_file); profile = NULL; goto cleanup; } @@ -311,7 +312,7 @@ epl_xdd_load(struct profile *profile, const char *xml_file) doc = xmlParseFile(xml_file); if (!doc) { - g_log(NULL, G_LOG_LEVEL_WARNING, "Error: unable to parse file \"%s\"\n", xml_file); + ws_log(NULL, LOG_LEVEL_WARNING, "Error: unable to parse file \"%s\"\n", xml_file); profile = NULL; goto cleanup; } @@ -321,7 +322,7 @@ epl_xdd_load(struct profile *profile, const char *xml_file) xpathCtx = xmlXPathNewContext(doc); if(!xpathCtx) { - g_log(NULL, G_LOG_LEVEL_WARNING, "Error: unable to create new XPath context\n"); + ws_log(NULL, LOG_LEVEL_WARNING, "Error: unable to create new XPath context\n"); profile = NULL; goto cleanup; } @@ -331,7 +332,7 @@ epl_xdd_load(struct profile *profile, const char *xml_file) { if(xmlXPathRegisterNs(xpathCtx, ns->prefix, ns->href) != 0) { - g_log(NULL, G_LOG_LEVEL_WARNING, "Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", ns->prefix, ns->href); + ws_log(NULL, LOG_LEVEL_WARNING, "Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", ns->prefix, ns->href); profile = NULL; goto cleanup; } @@ -348,7 +349,7 @@ epl_xdd_load(struct profile *profile, const char *xml_file) xmlXPathObjectPtr xpathObj = xmlXPathEvalExpression(xpath->expr, xpathCtx); if (!xpathObj || !xpathObj->nodesetval) { - g_log(NULL, G_LOG_LEVEL_WARNING, "Error: unable to evaluate xpath expression \"%s\"\n", xpath->expr); + ws_log(NULL, LOG_LEVEL_WARNING, "Error: unable to evaluate xpath expression \"%s\"\n", xpath->expr); xmlXPathFreeObject(xpathObj); profile = NULL; goto cleanup; @@ -433,7 +434,7 @@ populate_datatype_list(xmlNodeSetPtr nodes, void *_profile) const struct epl_datatype *ptr = epl_type_to_hf((const char*)subnode->name); if (!ptr) { - g_log(NULL, G_LOG_LEVEL_INFO, "Skipping unknown type '%s'\n", subnode->name); + ws_log(NULL, LOG_LEVEL_INFO, "Skipping unknown type '%s'\n", subnode->name); continue; } type = g_new(struct datatype, 1); @@ -552,7 +553,7 @@ populate_object_list(xmlNodeSetPtr nodes, void *_profile) if (subobj.info.value && epl_profile_object_mapping_add( profile, obj->info.idx, (guint8)subobj.info.idx, subobj.info.value)) { - g_log(NULL, G_LOG_LEVEL_INFO, + ws_log(NULL, LOG_LEVEL_INFO, "Loaded mapping from XDC %s:%s", obj->info.name, subobj.info.name); } } |