From 620eb91e49de16519e58c0f2f67d6698bb04de66 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Feb 10 2010 22:59:41 +0000 Subject: - suppress additional messages when we're in the same state more than once --- diff --git a/tests/tools/iterate.c b/tests/tools/iterate.c index 373516c..8fcc83f 100644 --- a/tests/tools/iterate.c +++ b/tests/tools/iterate.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Red Hat, Inc. + * Copyright (C) 2009,2010 Red Hat, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -118,7 +118,9 @@ main(int argc, char **argv) tmp = talloc_strndup(parent, p, q - p); if (entry->cm_state == cm_store_state_from_string(tmp)) { - printf("%s\n", tmp); + if (entry->cm_state != old_state) { + printf("%s\n", tmp); + } fflush(NULL); talloc_free(tmp); break;