Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

175 lines
6.3 KiB

  1. //========== Copyright � Valve Corporation, All rights reserved. ========
  2. #include "vjobutils.h"
  3. #ifdef VJOBS_ON_SPURS
  4. const char * HumanReadableCellResult( int nCellResult )
  5. {
  6. switch ( nCellResult )
  7. {
  8. case CELL_SPURS_CORE_ERROR_AGAIN:
  9. return "CELL_SPURS_CORE_ERROR_AGAIN";
  10. case CELL_SPURS_CORE_ERROR_INVAL:
  11. return "CELL_SPURS_CORE_ERROR_INVAL";
  12. case CELL_SPURS_CORE_ERROR_NOSYS:
  13. return "CELL_SPURS_CORE_ERROR_NOSYS";
  14. case CELL_SPURS_CORE_ERROR_NOMEM:
  15. return "CELL_SPURS_CORE_ERROR_NOMEM";
  16. case CELL_SPURS_CORE_ERROR_SRCH:
  17. return "CELL_SPURS_CORE_ERROR_SRCH";
  18. case CELL_SPURS_CORE_ERROR_NOENT:
  19. return "CELL_SPURS_CORE_ERROR_NOENT";
  20. case CELL_SPURS_CORE_ERROR_NOEXEC:
  21. return "CELL_SPURS_CORE_ERROR_NOEXEC";
  22. case CELL_SPURS_CORE_ERROR_DEADLK:
  23. return "CELL_SPURS_CORE_ERROR_DEADLK";
  24. case CELL_SPURS_CORE_ERROR_PERM:
  25. return "CELL_SPURS_CORE_ERROR_PERM";
  26. case CELL_SPURS_CORE_ERROR_BUSY:
  27. return "CELL_SPURS_CORE_ERROR_BUSY";
  28. case CELL_SPURS_CORE_ERROR_ABORT:
  29. return "CELL_SPURS_CORE_ERROR_ABORT";
  30. case CELL_SPURS_CORE_ERROR_FAULT:
  31. return "CELL_SPURS_CORE_ERROR_FAULT";
  32. case CELL_SPURS_CORE_ERROR_CHILD:
  33. return "CELL_SPURS_CORE_ERROR_CHILD";
  34. case CELL_SPURS_CORE_ERROR_STAT:
  35. return "CELL_SPURS_CORE_ERROR_STAT";
  36. case CELL_SPURS_CORE_ERROR_ALIGN:
  37. return "CELL_SPURS_CORE_ERROR_ALIGN";
  38. case CELL_SPURS_CORE_ERROR_NULL_POINTER:
  39. return "CELL_SPURS_CORE_ERROR_NULL_POINTER";
  40. case CELL_SPURS_POLICY_MODULE_ERROR_AGAIN:
  41. return "CELL_SPURS_POLICY_MODULE_ERROR_AGAIN";
  42. case CELL_SPURS_POLICY_MODULE_ERROR_INVAL:
  43. return "CELL_SPURS_POLICY_MODULE_ERROR_INVAL";
  44. case CELL_SPURS_POLICY_MODULE_ERROR_NOSYS:
  45. return "CELL_SPURS_POLICY_MODULE_ERROR_NOSYS";
  46. case CELL_SPURS_POLICY_MODULE_ERROR_NOMEM:
  47. return "CELL_SPURS_POLICY_MODULE_ERROR_NOMEM";
  48. case CELL_SPURS_POLICY_MODULE_ERROR_SRCH:
  49. return "CELL_SPURS_POLICY_MODULE_ERROR_SRCH";
  50. case CELL_SPURS_POLICY_MODULE_ERROR_NOENT:
  51. return "CELL_SPURS_POLICY_MODULE_ERROR_NOENT";
  52. case CELL_SPURS_POLICY_MODULE_ERROR_NOEXEC:
  53. return "CELL_SPURS_POLICY_MODULE_ERROR_NOEXEC";
  54. case CELL_SPURS_POLICY_MODULE_ERROR_DEADLK:
  55. return "CELL_SPURS_POLICY_MODULE_ERROR_DEADLK";
  56. case CELL_SPURS_POLICY_MODULE_ERROR_PERM:
  57. return "CELL_SPURS_POLICY_MODULE_ERROR_PERM";
  58. case CELL_SPURS_POLICY_MODULE_ERROR_BUSY:
  59. return "CELL_SPURS_POLICY_MODULE_ERROR_BUSY";
  60. case CELL_SPURS_POLICY_MODULE_ERROR_ABORT:
  61. return "CELL_SPURS_POLICY_MODULE_ERROR_ABORT";
  62. case CELL_SPURS_POLICY_MODULE_ERROR_FAULT:
  63. return "CELL_SPURS_POLICY_MODULE_ERROR_FAULT";
  64. case CELL_SPURS_POLICY_MODULE_ERROR_CHILD:
  65. return "CELL_SPURS_POLICY_MODULE_ERROR_CHILD";
  66. case CELL_SPURS_POLICY_MODULE_ERROR_STAT:
  67. return "CELL_SPURS_POLICY_MODULE_ERROR_STAT";
  68. case CELL_SPURS_POLICY_MODULE_ERROR_ALIGN:
  69. return "CELL_SPURS_POLICY_MODULE_ERROR_ALIGN";
  70. case CELL_SPURS_POLICY_MODULE_ERROR_NULL_POINTER:
  71. return "CELL_SPURS_POLICY_MODULE_ERROR_NULL_POINTER";
  72. case CELL_SPURS_TASK_ERROR_AGAIN:
  73. return "CELL_SPURS_TASK_ERROR_AGAIN";
  74. case CELL_SPURS_TASK_ERROR_INVAL:
  75. return "CELL_SPURS_TASK_ERROR_INVAL";
  76. case CELL_SPURS_TASK_ERROR_NOSYS:
  77. return "CELL_SPURS_TASK_ERROR_NOSYS";
  78. case CELL_SPURS_TASK_ERROR_NOMEM:
  79. return "CELL_SPURS_TASK_ERROR_NOMEM";
  80. case CELL_SPURS_TASK_ERROR_SRCH:
  81. return "CELL_SPURS_TASK_ERROR_SRCH";
  82. case CELL_SPURS_TASK_ERROR_NOENT:
  83. return "CELL_SPURS_TASK_ERROR_NOENT";
  84. case CELL_SPURS_TASK_ERROR_NOEXEC:
  85. return "CELL_SPURS_TASK_ERROR_NOEXEC";
  86. case CELL_SPURS_TASK_ERROR_DEADLK:
  87. return "CELL_SPURS_TASK_ERROR_DEADLK";
  88. case CELL_SPURS_TASK_ERROR_PERM:
  89. return "CELL_SPURS_TASK_ERROR_PERM";
  90. case CELL_SPURS_TASK_ERROR_BUSY:
  91. return "CELL_SPURS_TASK_ERROR_BUSY";
  92. case CELL_SPURS_TASK_ERROR_ABORT:
  93. return "CELL_SPURS_TASK_ERROR_ABORT";
  94. case CELL_SPURS_TASK_ERROR_FAULT:
  95. return "CELL_SPURS_TASK_ERROR_FAULT";
  96. case CELL_SPURS_TASK_ERROR_CHILD:
  97. return "CELL_SPURS_TASK_ERROR_CHILD";
  98. case CELL_SPURS_TASK_ERROR_STAT:
  99. return "CELL_SPURS_TASK_ERROR_STAT";
  100. case CELL_SPURS_TASK_ERROR_ALIGN:
  101. return "CELL_SPURS_TASK_ERROR_ALIGN";
  102. case CELL_SPURS_TASK_ERROR_NULL_POINTER:
  103. return "CELL_SPURS_TASK_ERROR_NULL_POINTER";
  104. case CELL_SPURS_TASK_ERROR_FATAL:
  105. return "CELL_SPURS_TASK_ERROR_FATAL";
  106. case CELL_SPURS_TASK_ERROR_SHUTDOWN:
  107. return "CELL_SPURS_TASK_ERROR_SHUTDOWN";
  108. case CELL_SPURS_JOB_ERROR_AGAIN:
  109. return "CELL_SPURS_JOB_ERROR_AGAIN";
  110. case CELL_SPURS_JOB_ERROR_INVAL:
  111. return "CELL_SPURS_JOB_ERROR_INVAL";
  112. case CELL_SPURS_JOB_ERROR_NOSYS:
  113. return "CELL_SPURS_JOB_ERROR_NOSYS";
  114. case CELL_SPURS_JOB_ERROR_NOMEM:
  115. return "CELL_SPURS_JOB_ERROR_NOMEM";
  116. case CELL_SPURS_JOB_ERROR_SRCH:
  117. return "CELL_SPURS_JOB_ERROR_SRCH";
  118. case CELL_SPURS_JOB_ERROR_NOENT:
  119. return "CELL_SPURS_JOB_ERROR_NOENT";
  120. case CELL_SPURS_JOB_ERROR_NOEXEC:
  121. return "CELL_SPURS_JOB_ERROR_NOEXEC";
  122. case CELL_SPURS_JOB_ERROR_DEADLK:
  123. return "CELL_SPURS_JOB_ERROR_DEADLK";
  124. case CELL_SPURS_JOB_ERROR_PERM:
  125. return "CELL_SPURS_JOB_ERROR_PERM";
  126. case CELL_SPURS_JOB_ERROR_BUSY:
  127. return "CELL_SPURS_JOB_ERROR_BUSY";
  128. case CELL_SPURS_JOB_ERROR_JOB_DESCRIPTOR:
  129. return "CELL_SPURS_JOB_ERROR_JOB_DESCRIPTOR";
  130. case CELL_SPURS_JOB_ERROR_JOB_DESCRIPTOR_SIZE:
  131. return "CELL_SPURS_JOB_ERROR_JOB_DESCRIPTOR_SIZE";
  132. case CELL_SPURS_JOB_ERROR_FAULT:
  133. return "CELL_SPURS_JOB_ERROR_FAULT";
  134. case CELL_SPURS_JOB_ERROR_CHILD:
  135. return "CELL_SPURS_JOB_ERROR_CHILD";
  136. case CELL_SPURS_JOB_ERROR_STAT:
  137. return "CELL_SPURS_JOB_ERROR_STAT";
  138. case CELL_SPURS_JOB_ERROR_ALIGN:
  139. return "CELL_SPURS_JOB_ERROR_ALIGN";
  140. case CELL_SPURS_JOB_ERROR_NULL_POINTER:
  141. return "CELL_SPURS_JOB_ERROR_NULL_POINTER";
  142. case CELL_SPURS_JOB_ERROR_MEMORY_SIZE:
  143. return "CELL_SPURS_JOB_ERROR_MEMORY_SIZE";
  144. case CELL_SPURS_JOB_ERROR_UNKNOWN_COMMAND:
  145. return "CELL_SPURS_JOB_ERROR_UNKNOWN_COMMAND";
  146. case CELL_SPURS_JOB_ERROR_JOBLIST_ALIGNMENT:
  147. return "CELL_SPURS_JOB_ERROR_JOBLIST_ALIGNMENT";
  148. case CELL_SPURS_JOB_ERROR_JOB_ALIGNMENT:
  149. return "CELL_SPURS_JOB_ERROR_JOB_ALIGNMENT";
  150. case CELL_SPURS_JOB_ERROR_CALL_OVERFLOW:
  151. return "CELL_SPURS_JOB_ERROR_CALL_OVERFLOW";
  152. case CELL_SPURS_JOB_ERROR_ABORT:
  153. return "CELL_SPURS_JOB_ERROR_ABORT";
  154. case CELL_SPURS_JOB_ERROR_DMALIST_ELEMENT:
  155. return "CELL_SPURS_JOB_ERROR_DMALIST_ELEMENT";
  156. case CELL_SPURS_JOB_ERROR_NUM_CACHE:
  157. return "CELL_SPURS_JOB_ERROR_NUM_CACHE";
  158. case CELL_SPURS_JOB_ERROR_INVALID_BINARY:
  159. return "CELL_SPURS_JOB_ERROR_INVALID_BINARY";
  160. default:
  161. return "<unknown>";
  162. }
  163. }
  164. #endif