From 2aaa292aaed79b44a13d1f15cc84b71d9fa17530 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Tue, 26 Jul 2016 09:45:57 +1000 Subject: [PATCH] dump: offsets for SOM_REL, SOM_ABS reports --- src/nfagraph/ng_dump.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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"); }