]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make more debug messages errors
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2013 14:56:46 +0000 (09:56 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2013 18:17:58 +0000 (13:17 -0500)
So that problems with the client are highlighted

src/modules/rlm_eap/eap.c

index 09b7f516d06c8f0d2e10b0456739575795bcb407..57b8e8e6914d4d63094e013d970689a7432353ca 100644 (file)
@@ -295,7 +295,7 @@ int eaptype_select(rlm_eap_t *inst, EAP_HANDLER *handler)
                }
 
                if (eaptype->data == NULL) {
-                       RDEBUG2("Empty NAK packet, cannot decide what EAP type the client wants.");
+                       RDEBUG2E("Client sent empty NAK packet, cannot decide what EAP type it wants.");
                        return EAP_INVALID;
                }
 
@@ -314,8 +314,8 @@ int eaptype_select(rlm_eap_t *inst, EAP_HANDLER *handler)
                         *      common choices.
                         */
                        if (eaptype->data[i] < PW_EAP_MD5) {
-                               RDEBUG2("NAK asked for bad type %d",
-                                      eaptype->data[i]);
+                               RDEBUG2E("Client sent NAK asking for bad type %d",
+                                        eaptype->data[i]);
                                return EAP_INVALID;
                        }
 
@@ -325,10 +325,10 @@ int eaptype_select(rlm_eap_t *inst, EAP_HANDLER *handler)
 
                                dv = dict_valbyattr(PW_EAP_TYPE, 0, eaptype->data[i]);
                                if (dv) {
-                                       RDEBUG2("NAK asked for unsupported type %s",
+                                       RDEBUG2E("Client NAK asked for unsupported type %s",
                                                dv->name);
                                } else {
-                                       RDEBUG2("NAK asked for unsupported type %d",
+                                       RDEBUG2E("Client NAK asked for unsupported type %d",
                                                eaptype->data[i]);
                                }
                                continue;
@@ -342,7 +342,7 @@ int eaptype_select(rlm_eap_t *inst, EAP_HANDLER *handler)
                         *      Prevent a firestorm if the client is confused.
                         */
                        if (handler->eap_type == eaptype->data[i]) {
-                               RDEBUG2E("Our request for %s was NAK'd with a request for %s.  Skipping the requested type.",
+                               RDEBUG2E("Client NAK'd our request for %s with a request for %s.  Ignoring it.",
                                       eaptype_name, eaptype_name);
                                continue;
                        }
@@ -393,7 +393,7 @@ int eaptype_select(rlm_eap_t *inst, EAP_HANDLER *handler)
                         *      We haven't configured it, it doesn't exit.
                         */
                        if (!inst->types[eaptype->type]) {
-                               RDEBUG2("EAP type %d is unsupported",
+                               RDEBUG2E("Client ask for unsupported EAP type %d",
                                       eaptype->type);
                                return EAP_INVALID;
                        }