Re: [edk2] [PATCH] MdeModulePkg/DebugLib: Print partial when format string is too long

2018-01-11 Thread Gao, Liming
Ray: Could you keep total size to point the real used size instead of full size? It can reduce the copy action in ReportStatusCodeLib. > -Original Message- > From: Ni, Ruiyu > Sent: Thursday, January 11, 2018 11:36 AM > To: edk2-devel@lists.01.org > Cc: Gao, Liming

[edk2] [PATCH] MdeModulePkg/DebugLib: Print partial when format string is too long

2018-01-10 Thread Ruiyu Ni
Today's implementation prints nothing when the format string cannot fit in the report status extended data buffer. It confuses user. The patch changes to print partial message by truncating the format string when it's too long. The missing enhancement is the extended data buffer only reserves 96