From 31cfd02f872b9e4341ada84290682073523ea323 Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Wed, 24 Apr 2002 17:43:29 +0000 Subject: [PATCH] Print usefull DBG messages for options without a name. Undef MIN and MAX macros before defining them. Henning Meier-Geinitz --- backend/mustek.c | 10 +++++----- doc/mustek/mustek.CHANGES | 9 +++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/backend/mustek.c b/backend/mustek.c index 9f5468dc7..012897e18 100644 --- a/backend/mustek.c +++ b/backend/mustek.c @@ -46,7 +46,7 @@ /**************************************************************************/ /* Mustek backend version */ -#define BUILD 121 +#define BUILD 122 /**************************************************************************/ #include "../include/sane/config.h" @@ -171,9 +171,9 @@ static SANE_String_Const halftone_list[] = { SANE_I18N ("5x5 coarse"), SANE_I18N ("5x5 fine"), SANE_I18N ("4x4 coarse"), SANE_I18N ("4x4 normal"), SANE_I18N ("4x4 fine"), SANE_I18N ("3x3 normal"), SANE_I18N ("2x2 normal"), SANE_I18N ("8x8 custom"), - SANE_I18N ("6x6 custom"), + SANE_I18N ("6x6 custom"), SANE_I18N ("5x5 custom"), SANE_I18N ("4x4 custom"), - SANE_I18N ("3x3 custom"), + SANE_I18N ("3x3 custom"), SANE_I18N ("2x2 custom"), 0 }; @@ -5479,7 +5479,7 @@ sane_get_option_descriptor (SANE_Handle handle, SANE_Int option) DBG (1, "sane_get_option_descriptor: handle is null!\n"); return 0; } - if (s->opt[option].name) + if (s->opt[option].name && s->opt[option].name[0] != 0) DBG (5, "sane_get_option_descriptor for option %s (%sactive%s)\n", s->opt[option].name, s->opt[option].cap & SANE_CAP_INACTIVE ? "in" : "", @@ -5517,7 +5517,7 @@ sane_control_option (SANE_Handle handle, SANE_Int option, return SANE_STATUS_INVAL; } - if (s->opt[option].name) + if (s->opt[option].name && s->opt[option].name[0] != 0) DBG (5, "sane_control_option (%s option %s)\n", action == SANE_ACTION_GET_VALUE ? "get" : (action == SANE_ACTION_SET_VALUE ? "set" : "unknown action with"), diff --git a/doc/mustek/mustek.CHANGES b/doc/mustek/mustek.CHANGES index 1846464e2..bbae37b42 100644 --- a/doc/mustek/mustek.CHANGES +++ b/doc/mustek/mustek.CHANGES @@ -1,5 +1,14 @@ CHANGES for the SANE Mustek backend +2002-04-24: + * Released Mustek backend 1.0-122. + +2002-04-24: + * Undef MIN and MAX if they are defined in mustek.h to avoid warnings. + +2002-04-22: + * Fixed debug output in sane_control_option and sane_get_device_descriptor. + 2002-04-10: * Released Mustek backend 1.0-121.