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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux