From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.web12.18504.1662069013122017688 for ; Thu, 01 Sep 2022 14:50:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FYbh6Z7G; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: quicinc.com, ip: 205.220.180.131, mailfrom: quic_rcran@quicinc.com) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 281LidJx014311; Thu, 1 Sep 2022 21:50:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=mI4e/TD4LoVVBBBMlQsRc5hmFv39zzfYin5OfjjV0DQ=; b=FYbh6Z7GqYKmcdurJOI2SsJi+3XKwxzb8sJxXIbLPVOu83JEQLxSTDSVjdbfmwO9BBPA NUiajdriopdjtXBEJEianq7Az3v8bmOzI6Awy2xyMp4xV78laMmHpMVCeR9qGgSlnFtc UyxP53/cMtpWPzqfog7vtcxcHVkbeUDOjFPerknsvEdNj9u3TOeO3ohnz+peqBAHNU7v kPPvETDMf282bxZJR0PgrdviiSOr4Fr1jEaujQ88m3d1o51asVNCA0oKuSxSXxWoN9fl IvV6UqYIV4pUoC3RxSjS5xpA1/l+YyDfv0CzjPMzfEafb/VOR3Y1K8SzCYCl+E5hWvM7 dg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jahc4uvaq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Sep 2022 21:50:05 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 281Lo45p023440 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Sep 2022 21:50:04 GMT Received: from linbox.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 1 Sep 2022 14:50:03 -0700 From: "Rebecca Cran" To: , Michael D Kinney , Liming Gao , Zhiguang Liu CC: Rebecca Cran Subject: [PATCH v2 0/1] MdePkg: Use ANSI colors to indicate debug message severity Date: Thu, 1 Sep 2022 15:49:43 -0600 Message-ID: <20220901214944.162346-1-rebecca@quicinc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Q8LOJkMLj-Y8zZa8qOQ8f8YuV0DOc9OF X-Proofpoint-ORIG-GUID: Q8LOJkMLj-Y8zZa8qOQ8f8YuV0DOc9OF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-09-01_12,2022-08-31_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 spamscore=0 malwarescore=0 mlxscore=0 adultscore=0 phishscore=0 clxscore=1015 mlxlogscore=750 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209010095 Content-Transfer-Encoding: 8bit Content-Type: text/plain Changes in v2: Introduced a new FeatureFlag gEfiMdePkgTokenSpaceGuid.PcdTerminalSupportsAnsiSequences which defaults to FALSE, and which controls whether to use ANSI color sequences. Rebecca Cran (1): MdePkg: Use ANSI colors to indicate debug message severity MdePkg/MdePkg.dec | 6 + MdePkg/MdePkg.dsc | 2 + MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf | 2 +- MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf | 2 +- MdePkg/Include/Library/PrintLib.h | 39 ++++++ MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c | 4 + MdePkg/Library/BasePrintLib/PrintLib.c | 128 ++++++++++++++++++++ MdePkg/Library/UefiDebugLibConOut/DebugLib.c | 4 + 8 files changed, 185 insertions(+), 2 deletions(-) -- 2.30.2