commit | 143ffa2221d38b9405ce89552363b76cf3f6915c | [log] [tgz] |
---|---|---|
author | Martin Radev <martin.b.radev@gmail.com> | Mon May 09 23:39:35 2022 +0300 |
committer | Will Deacon <will@kernel.org> | Fri May 20 21:21:09 2022 +0100 |
tree | 1385390a095c762acb99e528a3edc004cfe52154 | |
parent | bc77bf49df6e1e4ff095558cceb718293dd5b763 [diff] |
kvmtool: Add WARN_ONCE macro Add a macro to enable to print a warning only once. This is beneficial for cases where a warning could be helpful for debugging, but still log pollution is preferred not to happen. Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Martin Radev <martin.b.radev@gmail.com> Link: https://lore.kernel.org/r/20220509203940.754644-2-martin.b.radev@gmail.com Signed-off-by: Will Deacon <will@kernel.org>