[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 29/29] Add some debugging prints.



On 10/13/2010 05:11 PM, Chris Lumens wrote:

+                switch (loaderData->method) {
+                    case METHOD_CDROM:
+                        logMessage(DEBUGLVL, "in STEP_EXTRAS, method = METHOD_CDROM");
+                        break;
+
+                    case METHOD_HD:
+                        logMessage(DEBUGLVL, "in STEP_EXTRAS, method = METHOD_HD");
+                        break;
+
+                    case METHOD_NFS:
+                        logMessage(DEBUGLVL, "in STEP_EXTRAS, method = METHOD_NFS");
+                        break;
+
+                    case METHOD_URL:
+                        logMessage(DEBUGLVL, "in STEP_EXTRAS, method = METHOD_URL");
+                        break;
+
+                    default:
+                        logMessage(DEBUGLVL, "in STEP_EXTRAS, method = ??");
+                        break;
+                }

Can you define a lookup array for the method names instead?

Ales


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]