Skip to content

Instantly share code, notes, and snippets.

@TylerOderkirk
Created July 1, 2015 01:49
Show Gist options
  • Save TylerOderkirk/21f69e17189d55489b76 to your computer and use it in GitHub Desktop.
Save TylerOderkirk/21f69e17189d55489b76 to your computer and use it in GitHub Desktop.
bluelog.c STDOUT "-v" flush
diff -r d8638b19d99d bluelog.c
--- a/bluelog.c Tue Jun 30 21:44:06 2015 -0400
+++ b/bluelog.c Tue Jun 30 21:48:00 2015 -0400
@@ -911,7 +911,7 @@
{
if (friendlyclass)
{
- printf("[%s] %s,%s,%s,(%s)\n",\
+ printf("%s,%s,%s,%s,(%s)\n",\
dev_cache[ri].time, dev_cache[ri].addr,\
dev_cache[ri].name, device_class(dev_cache[ri].major_class,\
dev_cache[ri].minor_class), device_capability(dev_cache[ri].flags));
@@ -924,7 +924,7 @@
dev_cache[ri].major_class, dev_cache[ri].minor_class);
}
}
-
+ fflush(stdout);
if (bluelive)
{
// Write result with live function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment