]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
dump: offsets for SOM_REL, SOM_ABS reports
authorJustin Viiret <justin.viiret@intel.com>
Mon, 25 Jul 2016 23:45:57 +0000 (09:45 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 10 Aug 2016 05:09:12 +0000 (15:09 +1000)
src/nfagraph/ng_dump.cpp

index 60122cf3f6f9e85f4f15f3dc48f0328a673bbcd0..57668cafd6601c7ad6b698065722e4e6eebd3da3 100644 (file)
@@ -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");
     }