kernel/eka/kernel/device.cpp
branchRCL_3
changeset 43 c1f20ce4abcf
parent 0 a41df078684a
child 44 3e88ff8f41d5
equal deleted inserted replaced
42:a179b74831c9 43:c1f20ce4abcf
   627 		FOREVER
   627 		FOREVER
   628 			{
   628 			{
   629 			r=pdev.FindByFullName(h,n,fn);
   629 			r=pdev.FindByFullName(h,n,fn);
   630 			if (r!=KErrNone)
   630 			if (r!=KErrNone)
   631 				break;
   631 				break;
   632 			__KTRACE_OPT(KDEVICE,Kern::Printf("Found PDD %lS",&fn));
   632 			__KTRACE_OPT(KDEVICE,Kern::Printf("Found PDD %S",&fn));
   633 			pP=(DPhysicalDevice *)pdev.At(h);
   633 			pP=(DPhysicalDevice *)pdev.At(h);
   634 			__KTRACE_OPT(KDEVICE,{TBuf<16> verBuf(iVersion.Name()); Kern::Printf("unit=%d, info=%08x, ver=%lS",aInfo.iUnit,aInfo.iInfo,&verBuf);});
   634 			__KTRACE_OPT(KDEVICE,{TBuf<16> verBuf(iVersion.Name()); Kern::Printf("unit=%d, info=%08x, ver=%S",aInfo.iUnit,aInfo.iInfo,&verBuf);});
   635 			r=pP->Validate(aInfo.iUnit,aInfo.iInfo,iVersion);
   635 			r=pP->Validate(aInfo.iUnit,aInfo.iInfo,iVersion);
   636 			__KTRACE_OPT(KDEVICE,Kern::Printf("DPhysicalDevice::Validate returns %d",r));
   636 			__KTRACE_OPT(KDEVICE,Kern::Printf("DPhysicalDevice::Validate returns %d",r));
   637 			if (r!=KErrNotSupported)
   637 			if (r!=KErrNotSupported)
   638 				break;
   638 				break;
   639 			}
   639 			}
   690 		{
   690 		{
   691 		Kern::KUDesGet(pddName,*info.iPhysicalDevice);
   691 		Kern::KUDesGet(pddName,*info.iPhysicalDevice);
   692 		info.iPhysicalDevice=&pddName;
   692 		info.iPhysicalDevice=&pddName;
   693 		}
   693 		}
   694 
   694 
   695 	__KTRACE_OPT(KDEVICE,Kern::Printf("Exec::ChannelCreate LDD %lS PDD %lS Unit %d",&lddName,info.iPhysicalDevice,info.iUnit));
   695 	__KTRACE_OPT(KDEVICE,Kern::Printf("Exec::ChannelCreate LDD %S PDD %S Unit %d",&lddName,info.iPhysicalDevice,info.iUnit));
   696 
   696 
   697 	TInt r=Kern::ValidateName(lddName);
   697 	TInt r=Kern::ValidateName(lddName);
   698 	if (r<0)
   698 	if (r<0)
   699 		return(r);
   699 		return(r);
   700 	
   700