arm_adi_v5: parse ROM tables behind SoC-600 APv1 adapter
[fw/openocd] / src / main.c
index a71977daf9041e896599c5a1050c2525328414f3..a437b6b4c94fcd01bd794fcbb249ca8558170553 100644 (file)
  *   GNU General Public License for more details.                          *
  *                                                                         *
  *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 #include "openocd.h"
+#include "helper/system.h"
 
 /* This is the main entry for developer PC hosted OpenOCD.
  *
@@ -35,5 +33,9 @@
 
 int main(int argc, char *argv[])
 {
+       /* disable buffering otherwise piping to logs causes problems work */
+       setvbuf(stdout, NULL, _IONBF, 0);
+       setvbuf(stderr, NULL, _IONBF, 0);
+
        return openocd_main(argc, argv);
 }