From 35bfd9252417346e4b1f38a753c22e0541185b9e Mon Sep 17 00:00:00 2001 From: Wiktoria Kuna Date: Fri, 15 Nov 2024 15:42:47 +0100 Subject: [PATCH] logs2plot.py: Clarify logging Internal-tag: [#68702] Signed-off-by: Wiktoria Kuna --- rowhammer_tester/scripts/logs2plot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rowhammer_tester/scripts/logs2plot.py b/rowhammer_tester/scripts/logs2plot.py index a42ad319..c48643a0 100644 --- a/rowhammer_tester/scripts/logs2plot.py +++ b/rowhammer_tester/scripts/logs2plot.py @@ -203,11 +203,11 @@ def on_click(event): title = f"Bitflips per DQ pads for aggressor({y}) vs victim({x})." plot_dqs(dq_counters, title=title) except KeyError: - return print(f"No data about attack - aggressor({y}) vs victim({x}).") - except TypeError: return + except TypeError: print("Press detected out of bounds.") + return if __name__ == "__main__": @@ -280,7 +280,8 @@ def on_click(event): print( "ERROR: Attacks are not hammering single rows. " "Unable to plot aggressors against their victims. " - "Use `--row-pair-distance 0` to target single row at once." + "Repeat the attack experiment using `--row-pair-distance 0` option" + " to target single row at once." ) exit() # Otherwise plot single attack immediately