This patch fixes the NUM_MSGS error which was still 10, however there
are more type of messages to be printed. It also adds the support to just
print a new line in case there is no message to be printed.
Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@279
4f4bb910-9a46-0410-90c8-
c897d4f1cd53
#include <libcgroup.h>
#define SIZE 100 /* Max size of a message to be printed */
-#define NUM_MSGS 10 /* Number of such messsages */
+#define NUM_MSGS 20 /* Number of such messsages */
#define PASS 1 /* test passed */
#define FAIL 0 /* test failed */
case 15:
strncpy(info[k], " Group not deleted globaly\n", SIZE);
break;
+ case 19:
+ strncpy(info[k], " \n", SIZE);
+ break;
/* Add more messages here and change NUM_MSGS */
default:
break;