[gnome-color-manager] trivial: remove some overzealous debugging that cluttered the output
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: remove some overzealous debugging that cluttered the output
- Date: Wed, 26 May 2010 16:34:11 +0000 (UTC)
commit a4b1ea4be9aaf1002b62513b7db9a462e3a45d63
Author: Richard Hughes <richard hughsie com>
Date: Wed May 26 17:08:23 2010 +0100
trivial: remove some overzealous debugging that cluttered the output
src/gcm-device-cups.c | 2 +-
src/gcm-profile-lcms1.c | 16 ----------------
src/gcm-xyz.c | 3 ---
3 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/src/gcm-device-cups.c b/src/gcm-device-cups.c
index 9b1e799..af1c4fb 100644
--- a/src/gcm-device-cups.c
+++ b/src/gcm-device-cups.c
@@ -139,7 +139,7 @@ gcm_device_cups_set_from_dest (GcmDevice *device, http_t *http, cups_dest_t dest
egg_warning ("remap %s?", profile_filename);
}
- egg_debug ("keyword: %s, value: %s, spec: %s", keyword, value, ppd_file->attrs[i]->spec);
+// egg_debug ("keyword: %s, value: %s, spec: %s", keyword, value, ppd_file->attrs[i]->spec);
}
/* convert device_id 'MFG:HP;MDL:deskjet d1300 series;DES:deskjet d1300 series;' to suitable id */
diff --git a/src/gcm-profile-lcms1.c b/src/gcm-profile-lcms1.c
index a1c6b39..8acf755 100644
--- a/src/gcm-profile-lcms1.c
+++ b/src/gcm-profile-lcms1.c
@@ -172,8 +172,6 @@ gcm_parser_load_icc_vcgt_formula (GcmProfileLcms1 *profile_lcms1, const guint8 *
gboolean ret = FALSE;
GcmClutData *vcgt_data;
- egg_debug ("loading a formula encoded gamma table");
-
/* just load in data into a temporary array */
profile_lcms1->priv->vcgt_data = g_new0 (GcmClutData, 4);
vcgt_data = profile_lcms1->priv->vcgt_data;
@@ -226,8 +224,6 @@ gcm_parser_load_icc_vcgt_table (GcmProfileLcms1 *profile_lcms1, const guint8 *da
guint i;
GcmClutData *vcgt_data;
- egg_debug ("loading a table encoded gamma table");
-
num_channels = gcm_parser_decode_16 (data + GCM_VCGT_TABLE_NUM_CHANNELS);
num_entries = gcm_parser_decode_16 (data + GCM_VCGT_TABLE_NUM_ENTRIES);
entry_size = gcm_parser_decode_16 (data + GCM_VCGT_TABLE_NUM_SIZE);
@@ -240,10 +236,6 @@ gcm_parser_load_icc_vcgt_table (GcmProfileLcms1 *profile_lcms1, const guint8 *da
num_channels = 3;
}
- egg_debug ("channels: %u", num_channels);
- egg_debug ("entry size: %ubits", entry_size * 8);
- egg_debug ("entries/channel: %u", num_entries);
-
/* only able to parse RGB data */
if (num_channels != 3) {
egg_warning ("cannot parse non RGB entries");
@@ -651,8 +643,6 @@ gcm_profile_lcms1_parse_data (GcmProfile *profile, const guint8 *data, gsize len
/* get the number of tags in the file */
num_tags = gcm_parser_decode_32 (data + GCM_NUMTAGS);
- egg_debug ("number of tags: %i", num_tags);
-
for (i=0; i<num_tags; i++) {
offset = GCM_TAG_WIDTH * i;
tag_id = gcm_parser_decode_32 (data + GCM_BODY + offset + GCM_TAG_ID);
@@ -683,7 +673,6 @@ gcm_profile_lcms1_parse_data (GcmProfile *profile, const guint8 *data, gsize len
g_free (text);
}
if (tag_id == icSigMachineLookUpTableTag) {
- egg_debug ("found MLUT which is a fixed size block");
ret = gcm_parser_load_icc_mlut (profile_lcms1, data + tag_offset, tag_size);
if (!ret) {
g_set_error_literal (error, 1, 0, "failed to load mlut");
@@ -691,7 +680,6 @@ gcm_profile_lcms1_parse_data (GcmProfile *profile, const guint8 *data, gsize len
}
}
if (tag_id == icSigVideoCartGammaTableTag) {
- egg_debug ("found VCGT");
if (tag_size == 1584)
priv->adobe_gamma_workaround = TRUE;
ret = gcm_parser_load_icc_vcgt (profile_lcms1, data + tag_offset, tag_size);
@@ -707,10 +695,6 @@ gcm_profile_lcms1_parse_data (GcmProfile *profile, const guint8 *data, gsize len
/* set properties */
gcm_profile_set_has_vcgt (profile, priv->has_vcgt_formula || priv->has_vcgt_table);
-
- egg_debug ("Has MLUT: %s", priv->has_mlut ? "YES" : "NO");
- egg_debug ("Has VCGT formula: %s", priv->has_vcgt_formula ? "YES" : "NO");
- egg_debug ("Has VCGT table: %s", priv->has_vcgt_table ? "YES" : "NO");
out:
return ret;
}
diff --git a/src/gcm-xyz.c b/src/gcm-xyz.c
index e6f6a35..6c90dde 100644
--- a/src/gcm-xyz.c
+++ b/src/gcm-xyz.c
@@ -154,15 +154,12 @@ gcm_xyz_set_property (GObject *object, guint prop_id, const GValue *value, GPara
switch (prop_id) {
case PROP_CIE_X:
priv->cie_x = g_value_get_double (value);
- egg_debug ("CIE x now %f", priv->cie_x);
break;
case PROP_CIE_Y:
priv->cie_y = g_value_get_double (value);
- egg_debug ("CIE y now %f", priv->cie_y);
break;
case PROP_CIE_Z:
priv->cie_z = g_value_get_double (value);
- egg_debug ("CIE z now %f", priv->cie_z);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]