Index: /branches/rel_apv_10_7/usr/click/lib/libfeactl/feactl.c
===================================================================
--- /branches/rel_apv_10_7/usr/click/lib/libfeactl/feactl.c	(revision 38979)
+++ /branches/rel_apv_10_7/usr/click/lib/libfeactl/feactl.c	(working copy)
@@ -3577,26 +3577,31 @@
 
 	if (!res) {
 		englog(ENGLOG_FEACTL, FEACTL_VAPV_ERR, "the result buffer is NULL!\n");
+		printf ("ERROR : serialnumber result buffer is NULL!\n");
 		return -1;
 	}
 
 	if (len < SERIAL_NUM_LEN) {
 		englog(ENGLOG_FEACTL, FEACTL_VAPV_ERR, "the result buffer is too short!\n");
+		printf ("ERROR : serialnumber buffer is too short!\n");
 		return -1;
 	}
 
 	ret = gen_machine_sign(machine_sign, sizeof(machine_sign));
 	if (ret < 0) {
+		printf ("ERROR : Failed to generate machine signature!\n");
 		return -1;
 	}
 
 	ret = gen_boottime_sign(boottime_sign, sizeof(boottime_sign));
 	if (ret < 0) {
+		printf ("ERROR : Failed to generate boottime signature!\n");
 		return -1;
 	}
 	
 	ret = get_mac_first_addr(mac_first_addr, sizeof(mac_first_addr));
 	if (ret < 0) {
+		printf ("ERROR : Failed to get mac address!\n");
 		return -1;
 	}
 
@@ -3621,6 +3626,7 @@
 
 	fd = fopen(SRNFN, "r");
 	if (fd == NULL && errno == ENOENT) {
+		printf("WARNING : arrayid file does not exist. Generating new serial number.\n");
 		/*the arrayid file does not exist, generate it here*/
 		if (gen_vapv_serial_num(serial_num, SERIAL_NUM_LEN) < 0) {
 			printf("Failed to generate serial num at boot time\n");
@@ -3658,6 +3664,7 @@
 	if (fd == NULL && errno == ENOENT) {
 		/*the arrayid file is missing, treat it error here*/
 		englog(ENGLOG_FEACTL, FEACTL_VAPV_ERR, "The /boot/arrayid file is missing!\n");
+		printf("WARNING : The /boot/arrayid file is missing!\n");
 		return -1;
 	}
 	
@@ -3667,11 +3674,13 @@
 	ret = gen_machine_sign(machine_sign, sizeof(machine_sign));
 	if (ret < 0) {
 		englog(ENGLOG_FEACTL, FEACTL_VAPV_ERR, "Generate machine signature failed!\n");
+		printf("WARNING : Generate machine signature failed!\n");
 		return -1;
 	}
 
 	if (strncmp(serial_num_in_file, machine_sign, MACHINE_SIGN_LEN - 1)) {
 		englog(ENGLOG_FEACTL, FEACTL_VAPV_ERR, "The machine signature is inconsistent\n");
+		printf("WARNING : The machine signature is inconsistent!\n");
 		return -1;
 	}
 
