11/*
2- Copyright © 1995-2020, The AROS Development Team. All rights reserved.
2+ Copyright � 1995-2020, The AROS Development Team. All rights reserved.
33 $Id$
44
55 Desc:
@@ -157,7 +157,7 @@ static LONG internalBootCliHandler(void);
157157
158158 DeleteMsgPort (reply_mp );
159159
160- D (bug ("Dos/CliInit: Process returned Res1=%ld, Res2=%ld\n" , Res1 , Res2 ));
160+ DD (bug ("Dos/CliInit: Process returned Res1=%ld, Res2=%ld\n" , Res1 , Res2 ));
161161
162162 /* Did we succeed? */
163163 if (Res1 == DOSTRUE )
@@ -248,27 +248,27 @@ static void internalPatchBootNode(struct FileSysResource *fsr, struct DeviceNode
248248 /* If the DosType is 0 and dn_Handler == BNULL, use the default handler */
249249 if (de -> de_DosType == 0 && dn -> dn_Handler == BNULL )
250250 {
251- D (bug ("Dos/CliInit: Neither DosType nor Handler specified, using default filesystem\n" ));
251+ DD (bug ("Dos/CliInit: Neither DosType nor Handler specified, using default filesystem\n" ));
252252 dn -> dn_SegList = defseg ;
253253 dn -> dn_GlobalVec = (BPTR )- 1 ;
254254 return ;
255255 }
256256
257257 /* If no FileSysResource, nothing to do */
258258 if (fsr == NULL ) {
259- D (bug ("Dos/CliInit: No FileSystem.resource, not patching DeviceNode %p\n" , dn ));
259+ DD (bug ("Dos/CliInit: No FileSystem.resource, not patching DeviceNode %p\n" , dn ));
260260 return ;
261261 }
262262
263- D (bug ("Dos/CliInit: Looking for patches for DeviceNode %p\n" , dn ));
263+ DD (bug ("Dos/CliInit: Looking for patches for DeviceNode %p\n" , dn ));
264264
265265 /*
266266 * internalMatchFileSystemResourceHandler looks up the filesystem
267267 */
268268 fse = internalMatchFileSystemResourceHandler (fsr , de -> de_DosType , dn -> dn_Handler );
269269 if (fse != NULL )
270270 {
271- D (bug ("Dos/CliInit: found 0x%p in FileSystem.resource\n" , fse ));
271+ DD (bug ("Dos/CliInit: found 0x%p in FileSystem.resource\n" , fse ));
272272 PRINT_DOSTYPE (fse -> fse_DosType );
273273
274274 dn -> dn_SegList = fse -> fse_SegList ;
@@ -296,7 +296,7 @@ static struct MsgPort *mountBootNode(struct DeviceNode *dn, struct FileSysResour
296296 if ((dn == NULL ) || (dn -> dn_Name == BNULL ))
297297 return NULL ;
298298
299- D (bug ("Dos/CliInit: Mounting 0x%p (%b)...\n" , dn , dn -> dn_Name ));
299+ DD (bug ("Dos/CliInit: Mounting 0x%p (%b)...\n" , dn , dn -> dn_Name ));
300300
301301 /* Check if the device is already in DOS list */
302302 dl = LockDosList (LDF_DEVICES | LDF_READ );
@@ -312,7 +312,7 @@ static struct MsgPort *mountBootNode(struct DeviceNode *dn, struct FileSysResour
312312 /* Found in DOS list? Do nothing. */
313313 if (dl )
314314 {
315- D (bug ("Dos/CliInit: Found in DOS list, nothing to do\n" ));
315+ DD (bug ("Dos/CliInit: Found in DOS list, nothing to do\n" ));
316316 return dl -> dol_Task ;
317317 }
318318
@@ -322,7 +322,7 @@ static struct MsgPort *mountBootNode(struct DeviceNode *dn, struct FileSysResour
322322 if (!dn -> dn_Handler && !dn -> dn_SegList )
323323 {
324324 /* Don't know how to mount? Error... */
325- D (bug ("Dos/CliInit: Don't know how to mount\n" ));
325+ DD (bug ("Dos/CliInit: Don't know how to mount\n" ));
326326 return NULL ;
327327 }
328328
@@ -333,18 +333,18 @@ static struct MsgPort *mountBootNode(struct DeviceNode *dn, struct FileSysResour
333333 * a) On the Amiga ADNF_STARTPROC was not present in KS 1.3 and earlier, there was no deferred mount.
334334 * b) In fact if we have something in ExpansionBase, we for sure want it to be mounted.
335335 */
336- D (bug ("Dos/CliInit: Added to DOS list, starting up handler...\n" ));
336+ DD (bug ("Dos/CliInit: Added to DOS list, starting up handler...\n" ));
337337
338338 if (RunHandler (dn , NULL , DOSBase ))
339339 {
340- D (bug ("dn->dn_Task = 0x%p\n" , dn -> dn_Task ));
340+ DD (bug ("dn->dn_Task = 0x%p\n" , dn -> dn_Task ));
341341 return dn -> dn_Task ;
342342 }
343343
344- D (bug ("Failed\n" ));
344+ DD (bug ("Failed\n" ));
345345 RemDosEntry ((struct DosList * )dn );
346346 }
347- D (else bug ("Dos/CliInit: AddDosEntry() failed\n" ));
347+ DD (else bug ("Dos/CliInit: AddDosEntry() failed\n" ));
348348
349349 /*
350350 * TODO: AddDosEntry() can fail in case of duplicate name. In this case it would be useful
@@ -376,7 +376,7 @@ static BPTR internalBootLock(struct DosLibrary *DOSBase, struct ExpansionBase *E
376376 */
377377 ObtainSemaphore (& IntExpBase (ExpansionBase )-> BootSemaphore );
378378 bn = (struct BootNode * )GetHead (& ExpansionBase -> MountList );
379- D (bug ("Dos/CliInit: MountList head: 0x%p\n" , bn ));
379+ DD (bug ("Dos/CliInit: MountList head: 0x%p\n" , bn ));
380380
381381 if (bn == NULL )
382382 {
@@ -394,7 +394,7 @@ static BPTR internalBootLock(struct DosLibrary *DOSBase, struct ExpansionBase *E
394394 return BNULL ;
395395 }
396396
397- D (bug ("Dos/CliInit: %b (%d) appears usable\n" , dn -> dn_Name , bn -> bn_Node .ln_Pri ));
397+ DD (bug ("Dos/CliInit: %b (%d) appears usable\n" , dn -> dn_Name , bn -> bn_Node .ln_Pri ));
398398
399399 /* Try to find a Lock for 'name:' */
400400 name_len = AROS_BSTR_strlen (dn -> dn_Name );
@@ -407,10 +407,10 @@ static BPTR internalBootLock(struct DosLibrary *DOSBase, struct ExpansionBase *E
407407 CopyMem (AROS_BSTR_ADDR (dn -> dn_Name ), name , name_len );
408408 name [name_len + 0 ] = ':' ;
409409 name [name_len + 1 ] = 0 ;
410- D (bug ("Dos/CliInit: Attempt to Lock(\"%s\")... " , name ));
410+ DD (bug ("Dos/CliInit: Attempt to Lock(\"%s\")... " , name ));
411411
412412 lock = Lock (name , SHARED_LOCK );
413- D (bug ("=> 0x%p\n" , BADDR (lock )));
413+ DD (bug ("=> 0x%p\n" , BADDR (lock )));
414414
415415 if (lock != BNULL )
416416 {
@@ -435,11 +435,11 @@ static BPTR internalBootLock(struct DosLibrary *DOSBase, struct ExpansionBase *E
435435 SIPTR dead ;
436436
437437 /* Darn. Not bootable. Try to unmount it. */
438- D (bug ("Dos/CliInit: Does not have a bootable filesystem, unmounting...\n" ));
438+ DD (bug ("Dos/CliInit: Does not have a bootable filesystem, unmounting...\n" ));
439439
440440 /* It's acceptable if this fails */
441441 dead = DoPkt (mp , ACTION_DIE , 0 , 0 , 0 , 0 , 0 );
442- D (bug ("Dos/CliInit: ACTION_DIE returned %ld\n" , dead ));
442+ DD (bug ("Dos/CliInit: ACTION_DIE returned %ld\n" , dead ));
443443
444444 if (dead )
445445 {
@@ -500,7 +500,7 @@ static LONG internalBootCliHandler(void)
500500
501501 DOSBase = (APTR )TaggedOpenLibrary (TAGGEDOPEN_DOS );
502502 if (DOSBase == NULL ) {
503- D (bug ("Dos/CliInit: failed to open dos.library!\n" ));
503+ DD (bug ("Dos/CliInit: failed to open dos.library!\n" ));
504504 Alert (AT_DeadEnd | AG_OpenLib | AO_DOSLib );
505505 }
506506
@@ -518,7 +518,7 @@ static LONG internalBootCliHandler(void)
518518
519519 /* Find and Lock the proposed boot device */
520520 lock = internalBootLock (DOSBase , ExpansionBase , fsr );
521- D (bug ("Dos/CliInit: Proposed SYS: lock is: %p\n" , BADDR (lock )));
521+ DD (bug ("Dos/CliInit: Proposed SYS: lock is: %p\n" , BADDR (lock )));
522522 if (lock == BNULL )
523523 err = IoErr ();
524524 }
@@ -556,7 +556,7 @@ static LONG internalBootCliHandler(void)
556556 lock = Lock ("SYS:" , SHARED_LOCK );
557557 if (lock == BNULL )
558558 {
559- D (bug ("DOS/CliInit: Impossible! The SYS: assign failed!\n" ));
559+ DD (bug ("DOS/CliInit: Impossible! The SYS: assign failed!\n" ));
560560 Alert (AT_DeadEnd | AG_BadParm | AN_DOSLib );
561561 }
562562
@@ -592,11 +592,11 @@ static LONG internalBootCliHandler(void)
592592 * This means the handler needs to be loaded from disk (fat-handler for example).
593593 * Here we can already do it.
594594 */
595- D (bug ("Dos/CliInit: Assigns done, mount remaining handlers...\n" ));
595+ DD (bug ("Dos/CliInit: Assigns done, mount remaining handlers...\n" ));
596596
597597 BootFlags = IntExpBase (ExpansionBase )-> BootFlags ;
598598 Flags = ExpansionBase -> Flags ;
599- D (bug ("Dos/CliInit: BootFlags 0x%lx Flags 0x%x\n" , BootFlags , Flags ));
599+ DD (bug ("Dos/CliInit: BootFlags 0x%lx Flags 0x%x\n" , BootFlags , Flags ));
600600
601601 ForeachNodeSafe (& ExpansionBase -> MountList , bn , tmpbn )
602602 {
@@ -617,14 +617,14 @@ static LONG internalBootCliHandler(void)
617617 bootProc -> pr_WindowPtr = bootWin ;
618618
619619 /* Init all the RTF_AFTERDOS code, since we now have SYS:, the dos devices, and all the other assigns */
620- D (bug ("Dos/CliInit: Calling InitCode(RTF_AFTERDOS, 0)\n" ));
620+ DD (bug ("Dos/CliInit: Calling InitCode(RTF_AFTERDOS, 0)\n" ));
621621 InitCode (RTF_AFTERDOS , 0 );
622622
623623 /* Call the platform-overridable portions */
624- D (bug ("Dos/CliInit: Calling __dos_Boot(%p, 0x%lx, 0x%x)\n" , DOSBase , BootFlags , Flags ));
624+ DD (bug ("Dos/CliInit: Calling __dos_Boot(%p, 0x%lx, 0x%x)\n" , DOSBase , BootFlags , Flags ));
625625 __dos_Boot (DOSBase , BootFlags , Flags );
626626
627- D (bug ("Dos/CliInit: Boot sequence exited\n" ));
627+ DD (bug ("Dos/CliInit: Boot sequence exited\n" ));
628628 CloseLibrary ((APTR )DOSBase );
629629
630630 /* And exit... */
0 commit comments