/* Function to append a 64 bit number onto the mapping info. */
EFI_STATUS AppendCSDNum(IN OUT DEVICE_CONSIST_MAPPING_INFO *MappingItem, IN UINT64 Num)
/* Function to append a 64 bit number onto the mapping info. */
EFI_STATUS AppendCSDNum(IN OUT DEVICE_CONSIST_MAPPING_INFO *MappingItem, IN UINT64 Num)
{
  EFI_STATUS  Status;
  ASSERT (MappingItem != NULL);
  if (MappingItem->Digital) {
    Status = CatPrint (&MappingItem->Csd, L"%ld", Num);
  } else {
    Status = AppendCSDNum2 (&MappingItem->Csd, Num);
  }
  if (!EFI_ERROR (Status)) {
    MappingItem->Digital = (BOOLEAN) !(MappingItem->Digital);
  }
  return Status;
}