From dc0ab8a449d6aea470f787a8aac8067d9c547ec2 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Fri, 16 Apr 2021 23:28:19 +0000 Subject: [PATCH] logger: fix precision bug introduced by new -e option Add missing "break" so the -e option stops spilling on the -f precision option. Fixes commit 53ce8b9d9f82 ("logger: new relative timestamps option, relative to first entry seen"). Since that commit the -e option was wrongly assigned to the precision too. Signed-off-by: Marc Herbert --- tools/logger/logger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/logger/logger.c b/tools/logger/logger.c index 733588107..2126c99d7 100644 --- a/tools/logger/logger.c +++ b/tools/logger/logger.c @@ -248,6 +248,7 @@ int main(int argc, char *argv[]) return -EINVAL; } config.relative_timestamps = i; + break; } case 'f': config.time_precision = atoi(optarg);