title: Simpler NSLog macro
body: <p>using iphone sdk 4.0 I want to remove the function name stuff from this macro but am struggling</p>
  
  <pre><code>#define LOG(fmt, ...) NSLog((@"%s " fmt), __PRETTY_FUNCTION__,##__VA_ARGS__)
  </code></pre>
  
  <p>i tried </p>
  
  <pre><code>#define LOG(fmt, ...) NSLog((@"%s " fmt), ##__VA_ARGS__)
  </code></pre>
  
  <p>but this results in a crash!!</p>
  
  <p>I want to be able to log like this </p>
  
  <pre><code>LOG("text to log");
  LOG("text to log with param %d", param); etc
  </code></pre>