message: Refactoring Unsafe Functions (`examples/cpu/sgemm/SGEMM_main.cpp`)
  *   Removed use of `sprintf`.
  | `examples/cpu/sgemm/SGEMM_main.cpp`
diff: @@ -55,9 +55,9 @@ M | | X N | | = M | |
  #include "../../common/timing.h"
  +#include <math.h>
  #include <stdio.h>
  #include <stdlib.h>
  -#include <math.h>
  // OS Independent millisec wall timers
  #ifdef _WIN32
  @@ -156,7 +156,6 @@ void Test_SGEMM(SGEMMFuncPtr SGEMMFunc, char *pcFuncName, float matrixA[], float
  float avgTime;
  unsigned int i;
  bool bValid;
  - char psValid[256];
  TIMER_DECLARE_AND_INIT();
  // Total = MNK mults + MN(K-1) adds.
  @@ -182,12 +181,8 @@ void Test_SGEMM(SGEMMFuncPtr SGEMMFunc, char *pcFuncName, float matrixA[], float
  avgTime = (float)totalWallTime / (float)numIterations;
  bValid = Validate_result(matrixC, matrixValid, M, K);
  - if (bValid)
  - sprintf(psValid, "valid");
  - else
  - sprintf(psValid, "ERROR");
  printf("%40s %10.4f millisecs %10.4f GFLOPs Validation: %s.\n", pcFuncName, avgTime,
  - (fFlopsPerGEMM / (avgTime / 1000.0f)) / 1000000000.0f, psValid);
  + (fFlopsPerGEMM / (avgTime / 1000.0f)) / 1000000000.0f, (bValid ? "valid" : "ERROR"));
  init_matrix(matrixC, M, K, 0.0f);
  }
  