core/builtins/kill.cpp
changeset 16 18a55d594fba
parent 7 184a1eb85cf2
equal deleted inserted replaced
15:6bb86f60191e 16:18a55d594fba
   121 		else if (err)
   121 		else if (err)
   122 			{
   122 			{
   123 			PrintWarning(_L("Couldn't open %S (err=%d)"), &fullName);
   123 			PrintWarning(_L("Couldn't open %S (err=%d)"), &fullName);
   124 			}
   124 			}
   125 		}
   125 		}
   126 	if (numFound == 0)
   126 	if (!iAll)
   127 		{
   127 		{
   128 		LeaveIfErr(KErrNotFound, _L("No matches for pattern \"%S\", or all matches are zombies"), &aPattern);
   128 		if (numFound == 0)
   129 		}
   129 			{
   130 	else if (numFound > 1 && !iAll)
   130 			LeaveIfErr(KErrNotFound, _L("No matches for pattern \"%S\", or all matches are zombies"), &aPattern);
   131 		{
   131 			}
   132 		PrintWarning(_L("%d further matches for pattern \"%S\" found, be more specific or use --all option"), numFound-1, &aPattern);
   132 		else if (numFound > 1)
       
   133 			{
       
   134 			PrintWarning(_L("%d further matches for pattern \"%S\" found, be more specific or use --all option"), numFound-1, &aPattern);
       
   135 			}
   133 		}
   136 		}
   134 	}
   137 	}
   135 
   138 
   136 void CCmdKill::DoKillThreadL(TUint aId)
   139 void CCmdKill::DoKillThreadL(TUint aId)
   137 	{
   140 	{