public static short parse_serial_parameter(final String cur_serial_data, boolean highlight, byte show_device_flags)
	{
		if (show_device_flags == SHOW_DEVICE_NONE)
			return ANALYZER_SUCCESS;

		String title = null;
		String content = null;
		String date = null;
		String time = null;
		String number = null;
		String severity = null;
//		String severity_color = null;
		String tmp_serial_data = cur_serial_data;

//			printf("%s [%d]\n", serial_data, serial_data_size);
		short ret = ANALYZER_SUCCESS;
		int pos = tmp_serial_data.indexOf(": ");
		if (pos < 0)
		{
			WriteWarnFormatSyslog("Ignore incorrect data format(1): %s", tmp_serial_data);
			ret = ANALYZER_FAILURE_IGNORE_DATA;
		}
		else
		{
			if (pos < MIN_SERAIL_DATA_TITLE_LENGTH)
			{
				WriteWarnFormatSyslog("Ignore incorrect data format(2): %s", tmp_serial_data);
				ret = ANALYZER_FAILURE_IGNORE_DATA;
			}
			else
			{
// Copy the title
				title = tmp_serial_data.substring(0, pos);
// Parse the title
				Pattern datePattern = Pattern.compile("([\\d/]{5}) ([\\d:]{8}) ([\\d]{3,5}) ([\\w]{4,5})");
				Matcher dateMatcher = datePattern.matcher(title);
				if (dateMatcher.find())
				{
					date = dateMatcher.group(1);
					time = dateMatcher.group(2);
					number = dateMatcher.group(3);
					severity =  dateMatcher.group(4);
//					WriteDebugFormatSyslog("Date: %s, Time: %s, Number: %s, Severity: %s", date, time, number, severity);
	// Copy the content
					content = tmp_serial_data.substring(pos + 2);
//					WriteDebugFormatSyslog("Content: %s", content);
//					severity_color = get_severity_color(severity);
//					if (severity_color == null)
//						ret = ANALYZER_FAILURE_INCORRECT_SERIAL_DATA;
				}
				else
				{
					WriteWarnFormatSyslog("Ignore incorrect data format(3): %s", title);
					ret = ANALYZER_FAILURE_IGNORE_DATA;
				}
			}
		}

		if (CheckSuccess(ret))
		{
			String res = String.format("Date: %s, Time: %s, Number: %s, Severity: %s, Content: %s", date, time, number, severity, content);
			if (checkShowDeviceEnable(show_device_flags, SHOW_DEVICE_CONSOLE))
			{
				if (highlight) // Exploit the red color in console to highlight the interesting string...
					System.err.println(res);
				else
					System.out.println(res);
//				System.out.printf("%s%s\n",(highlight ? DUMP_CYN : severity_color), res);
			}
			if (checkShowDeviceEnable(show_device_flags, SHOW_DEVICE_SYSLOG))
				WriteDebugSyslog(res);
		}

		return ret;
	}