[hackers] [skvm] Don't do printfs if the debug mode flag is not enabled. || Dimitrios Papastamos

From: <hg_AT_suckless.org>
Date: Sun, 21 Jun 2009 13:06:26 +0000 (UTC)

changeset: 20:af1609807ff7
tag: tip
user: Dimitrios Papastamos <stateless [at] archlinux.us>
date: Sun Jun 21 14:06:26 2009 -0700
files: skvm.c
description:
Don't do printfs if the debug mode flag is not enabled.

diff -r 2a3543ffe5b8 -r af1609807ff7 skvm.c
--- a/skvm.c Sun May 31 11:21:05 2009 -0700
+++ b/skvm.c Sun Jun 21 14:06:26 2009 -0700
@@ -301,7 +301,7 @@
          locked_reason = libhal_device_get_property_string(
                             context, did, "info.locked.reason",
                             (DBusError *)NULL);
- if (locked_reason) {
+ if (locked_reason && debug_mode_flag) {
             printf("%s%d: %s\n", __FILE__, __LINE__, locked_reason);
             libhal_free_string(locked_reason);
          }
Received on Sun Jun 21 2009 - 13:06:26 UTC

This archive was generated by hypermail 2.2.0 : Sun Jun 21 2009 - 13:12:05 UTC