From: Justin Viiret Date: Mon, 25 Jul 2016 23:45:57 +0000 (+1000) Subject: dump: offsets for SOM_REL, SOM_ABS reports X-Git-Tag: v4.3.0^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aaa292aaed79b44a13d1f15cc84b71d9fa17530;p=thirdparty%2Fvectorscan.git dump: offsets for SOM_REL, SOM_ABS reports --- diff --git a/src/nfagraph/ng_dump.cpp b/src/nfagraph/ng_dump.cpp index 60122cf3..57668caf 100644 --- a/src/nfagraph/ng_dump.cpp +++ b/src/nfagraph/ng_dump.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Intel Corporation + * Copyright (c) 2015-2016, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -450,7 +450,13 @@ void dumpReportManager(const ReportManager &rm, const Grey &grey) { fprintf(f, " reverse nfa: %u", report.revNfaIndex); } if (isSomRelSetReport(report)) { - fprintf(f, " set, adjust: %lld", report.somDistance); + fprintf(f, " set, adjust: %llu", report.somDistance); + } + if (report.type == EXTERNAL_CALLBACK_SOM_REL) { + fprintf(f, " relative: %llu", report.somDistance); + } + if (report.type == EXTERNAL_CALLBACK_SOM_ABS) { + fprintf(f, " absolute: %llu", report.somDistance); } fprintf(f, "\n"); }