On Thu, Dec 18, 2008 at 06:24:36PM +0530, Sudhir Kumar wrote:
> This patch adds few more warning messages in the message pool
> 
> Signed-off-by: Sudhir Kumar <[email protected]>
> 
> Index: balbir-latest/tests/libcgrouptest01.c
> ===================================================================
> --- balbir-latest.orig/tests/libcgrouptest01.c
> +++ balbir-latest/tests/libcgrouptest01.c
> @@ -1347,36 +1347,42 @@ void set_info_msgs()
>                                                       " groups\n", SIZE);
>                       break;
>               case 7:
> +                     strncpy(info[k], " group found in filesystem\n", SIZE);
> +                     break;

what is k? Does this even work?

> +             case 8:
> +                     strncpy(info[k], " group not in filesystem\n", SIZE);
> +                     break;
> +             case 9:
>                       strncpy(info[k], " group found under both"
>                                               " controllers\n", SIZE);
>                       break;
> -             case 8:
> +             case 10:
>                       strncpy(info[k], " group not found under"
>                                               " second controller\n", SIZE);
>                       break;
> -             case 9:
> +             case 11:
>                       strncpy(info[k], " group not found under"
> -                                             " any controller\n", SIZE);
> +                                             " first controller\n", SIZE);
>                       break;
> -             case 10:
> +             case 12:
>                       strncpy(info[k], " group modified under"
>                                               " both controllers\n", SIZE);
>                       break;
> -             case 11:
> +             case 13:
>                       strncpy(info[k], " group not modified under"
>                                               " second controller\n", SIZE);
>                       break;
> -             case 12:
> +             case 14:
>                       strncpy(info[k], " group not modified under"
>                                               " any controller\n", SIZE);
>                       break;
> -             case 13:
> +             case 15:
>                       strncpy(info[k], " Group deleted from fs\n", SIZE);
>                       break;
> -             case 14:
> +             case 16:
>                       strncpy(info[k], " Group not deleted from fs\n", SIZE);
>                       break;
> -             case 15:
> +             case 17:
>                       strncpy(info[k], " Group not deleted globaly\n", SIZE);
>                       break;
>               /* In case there is no extra info messages to be printed */
> 

-- 
regards,
Dhaval

------------------------------------------------------------------------------
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to