timer_entropyd-0.1-syslog.patch 833 B

1234567891011121314151617181920212223242526272829
  1. From 51dc916e4466d0033728dd14f318203f995b3ad0 Mon Sep 17 00:00:00 2001
  2. From: Jeremy Olexa <darkside@gentoo.org>
  3. Date: Tue, 5 Apr 2011 14:19:49 +0000
  4. Subject: [PATCH] Move syslog call to ifdef _DEBUG
  5. In order to prevent logfile spamming (once every 7 seconds), move the
  6. syslog call only be used if compiled with -D_DEBUG
  7. ---
  8. main.c | 2 +-
  9. 1 files changed, 1 insertions(+), 1 deletions(-)
  10. diff --git a/main.c b/main.c
  11. index 13b95dd..781b321 100644
  12. --- a/main.c
  13. +++ b/main.c
  14. @@ -66,8 +66,8 @@ int main(int argc, char *argv[])
  15. kernel_rng_add_entropy(bytes, sizeof(bytes), cur_n_bits);
  16. - syslog(LOG_DEBUG, "added %d bits of entropy data", cur_n_bits);
  17. #ifdef _DEBUG
  18. + syslog(LOG_DEBUG, "added %d bits of entropy data", cur_n_bits);
  19. printf("added %d bits of entropy data\n", cur_n_bits);
  20. #endif
  21. --
  22. 1.7.3.4