]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-mounttab-remove-debugging-20070203
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 4 Feb 2007 02:50:29 +0000 (02:50 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 4 Feb 2007 02:50:29 +0000 (02:50 +0000)
no longer need the Debug Output String statements

(cherry picked from commit 78c83150f62d78330795c9a8c9b7de13421f0bde)

src/WINNT/client_creds/mounttab.cpp

index 571f8eeb87784aefa76df06224c9030278763bc3..52f85583a5d60504bf9fb294617081ecea53d34f 100644 (file)
@@ -122,11 +122,7 @@ void Mount_OnUpdate (HWND hDlg, BOOL fOnInitDialog)
 
     HWND hList = GetDlgItem (hDlg, IDC_LIST);
     int iItemSel = LB_GetSelected(hList);
-    sprintf(dbgstr,"Mount_OnUpdate LB_GETCURSEL = %d\n",iItemSel);
-    OutputDebugStringA(dbgstr);
     int iDataSel = Mount_DriveFromItem (hDlg, iItemSel);
-    sprintf(dbgstr,"Mount_OnUpdate Drive = %d\n",iDataSel);
-    OutputDebugStringA(dbgstr);
     iItemSel = -1;
 
     if (fOnInitDialog && (iDataSel == -1))
@@ -144,13 +140,9 @@ void Mount_OnUpdate (HWND hDlg, BOOL fOnInitDialog)
 
        LPTSTR psz = FormatString (IDS_DRIVE_MAP, TEXT("%c%s"), List.aDriveMap[ iDrive ].chDrive, szAfsPath);
        int iItem = LB_AddItem(hList, psz, List.aDriveMap[ iDrive ].fActive);
-       sprintf(dbgstr,"Mount_OnUpdate LB_ADDSTRING drive %d [%s] as item %d\n", iDrive, psz, iItem);
-       OutputDebugStringA(dbgstr);
        FreeString (psz);
 
        int iCount = SendMessage(hList, LB_GETCOUNT, 0, 0);
-       sprintf(dbgstr,"Mount_OnUpdate LB_GETCOUNT = %d\n", iCount);
-       OutputDebugStringA(dbgstr);
 
        /* This really shouldn't work except that we are adding 
         * the strings in alphabetical order.  Otherwise, we could
@@ -163,8 +155,6 @@ void Mount_OnUpdate (HWND hDlg, BOOL fOnInitDialog)
     LB_EndChange(hList, NULL);
 
     LB_SetSelected(hList, iItemSel);
-    sprintf(dbgstr,"Mount_OnUpdate LB_SETCURSEL = %d\n",iItemSel);
-    OutputDebugStringA(dbgstr);
 
     Mount_OnSelect (hDlg);
     FreeDriveMapList (&List);
@@ -178,11 +168,7 @@ void Mount_OnSelect (HWND hDlg)
 
    HWND hList = GetDlgItem (hDlg, IDC_LIST);
    int iItemSel = LB_GetSelected(hList);
-    sprintf(dbgstr,"Mount_OnSelect LB_GETCURSEL = %d\n",iItemSel);
-    OutputDebugStringA(dbgstr);
    int iDataSel = Mount_DriveFromItem (hDlg, iItemSel);
-    sprintf(dbgstr,"Mount_OnSelect Drive = %d\n",iDataSel);
-    OutputDebugStringA(dbgstr);
 
    l.iDriveSelectLast = iDataSel;
 
@@ -200,11 +186,7 @@ void Mount_OnCheck (HWND hDlg)
 
    HWND hList = GetDlgItem (hDlg, IDC_LIST);
    int iItemSel = LB_GetSelected(hList);
-    sprintf(dbgstr,"Mount_OnCheck LB_GETCURSEL = %d\n",iItemSel);
-    OutputDebugStringA(dbgstr);
    int iDriveSel = Mount_DriveFromItem (hDlg, iItemSel);
-    sprintf(dbgstr,"Mount_OnCheck Drive = %d\n",iDriveSel);
-    OutputDebugStringA(dbgstr);
    BOOL fChecked = SendMessage (hList, LB_GETITEMDATA, iItemSel, 0);
 
    if (iDriveSel != -1)
@@ -234,11 +216,7 @@ void Mount_OnRemove (HWND hDlg)
     char dbgstr[128];
     HWND hList = GetDlgItem (hDlg, IDC_LIST);
     int iItemSel = LB_GetSelected(hList);
-    sprintf(dbgstr,"Mount_OnRemove LB_GETCURSEL = %d\n",iItemSel);
-    OutputDebugStringA(dbgstr);
    int iDriveSel = Mount_DriveFromItem (hDlg, iItemSel);
-    sprintf(dbgstr,"Mount_OnRemove Drive = %d\n",iDriveSel);
-    OutputDebugStringA(dbgstr);
 
    if (iDriveSel != -1)
       {
@@ -278,11 +256,7 @@ void Mount_OnEdit (HWND hDlg)
     char dbgstr[128];
    HWND hList = GetDlgItem (hDlg, IDC_LIST);
    int iItemSel = LB_GetSelected(hList);
-    sprintf(dbgstr,"Mount_OnEdit LB_GETCURSEL = %d\n",iItemSel);
-    OutputDebugStringA(dbgstr);
    int iDriveSel = Mount_DriveFromItem (hDlg, iItemSel);
-    sprintf(dbgstr,"Mount_OnEdit Drive = %d\n",iDriveSel);
-    OutputDebugStringA(dbgstr);
 
    Mount_AdjustMapping (hDlg, iDriveSel);
 }
@@ -367,8 +341,6 @@ int Mount_DriveFromItem (HWND hDlg, int iItem)
     char dbgstr[128];
     TCHAR szItem[ 1024 ] = TEXT("");
     SendDlgItemMessage (hDlg, IDC_LIST, LB_GETTEXT, iItem, (LPARAM)szItem);
-    sprintf(dbgstr, "Mount_DriveFromItem LB_GETTEXT - [%s]\n", szItem);
-    OutputDebugString(dbgstr);
 
     LPTSTR pch;
     if ((pch = (LPTSTR)lstrchr (szItem, TEXT(':'))) != NULL)