suppress-outputs.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Index: suspend-0.8_20100831/splash.c
  2. ===================================================================
  3. --- suspend-0.8_20100831.orig/splash.c
  4. +++ suspend-0.8_20100831/splash.c
  5. @@ -206,7 +206,7 @@ void splash_prepare(struct splash *splas
  6. if (!mode)
  7. return;
  8. - printf("Looking for splash system... ");
  9. + /*printf("Looking for splash system... ");*/
  10. if (!bootsplash_open()) {
  11. splash->finish = bootsplash_finish;
  12. @@ -246,12 +246,12 @@ void splash_prepare(struct splash *splas
  13. } else if (0) {
  14. /* add another splash system here */
  15. } else {
  16. - printf("none\n");
  17. + /*printf("none\n");*/
  18. if (!open_input_fd())
  19. splash->key_pressed = key_pressed;
  20. return;
  21. }
  22. - printf("found\n");
  23. + /*printf("found\n");*/
  24. splash->progress(0);
  25. }
  26. Index: suspend-0.8_20100831/suspend.c
  27. ===================================================================
  28. --- suspend-0.8_20100831.orig/suspend.c
  29. +++ suspend-0.8_20100831/suspend.c
  30. @@ -1733,7 +1733,7 @@ int suspend_system(int snapshot_fd, int
  31. }
  32. sprintf(message, "Snapshotting system");
  33. - printf("%s: %s\n", my_name, message);
  34. + /*printf("%s: %s\n", my_name, message);*/
  35. splash.set_caption(message);
  36. attempts = 2;
  37. do {
  38. @@ -1748,7 +1748,7 @@ int suspend_system(int snapshot_fd, int
  39. if (!in_suspend) {
  40. /* first unblank the console, see console_codes(4) */
  41. printf("\e[13]");
  42. - printf("%s: returned to userspace\n", my_name);
  43. + /*printf("%s: returned to userspace\n", my_name);*/
  44. free_snapshot(snapshot_fd);
  45. break;
  46. }