dump: offsets for SOM_REL, SOM_ABS reports

This commit is contained in:
Justin Viiret 2016-07-26 09:45:57 +10:00 committed by Matthew Barr
parent 67e450115a
commit 2aaa292aae

View 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 * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * 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); fprintf(f, " reverse nfa: %u", report.revNfaIndex);
} }
if (isSomRelSetReport(report)) { 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"); fprintf(f, "\n");
} }