yaffs Added some more tests to direct/timothy_tests/mirror_tests
[yaffs2.git] / direct / timothy_tests / mirror_tests / lib.c
index 0d1443050763c4c2de188c00e65b79dfbd1c9581..558de9ab0c7b932b9fa69d977dbcffc1c304492e 100644 (file)
@@ -22,6 +22,10 @@ void set_print_level(int new_level)
 {
        PRINT_LEVEL=new_level;
 }
+int get_print_level(void)
+{
+       return PRINT_LEVEL;
+}
 
 void set_exit_on_error(int num)
 {
@@ -40,7 +44,7 @@ void display_error(void)
 
 void  generate_random_string(char *ptr,int length_of_str){
        unsigned int x;
-       unsigned int length=((rand() %length_of_str)+1);        /*creates a int with the number of charecters been between 1 and 51*/           
+       unsigned int length=((rand() %(length_of_str-3))+3);    /*creates a int with the number of charecters been between 1 and 51*/           
        char letter='\0';
        strcpy(ptr,"");
        //printf("generating string\n");