Add WriteFdFmt and clean up more code.

Also say *which* device wasn't found.

Bug: http://b/20666660
Change-Id: I50e234ad89e39ae0a8995083c0b642c61275c5a3
diff --git a/adb/adb_io.h b/adb/adb_io.h
index 3b8b050..8d50a6d 100644
--- a/adb/adb_io.h
+++ b/adb/adb_io.h
@@ -49,11 +49,11 @@
  */
 bool WriteFdExactly(int fd, const void* buf, size_t len);
 
-/* Same as above, but with an implicit len = strlen(buf). */
+// Same as above, but for strings.
 bool WriteFdExactly(int fd, const char* s);
 bool WriteFdExactly(int fd, const std::string& s);
 
-// TODO: move minadb off this and remove it.
-bool WriteStringFully(int fd, const char* str);
+// Same as above, but formats the string to send.
+bool WriteFdFmt(int fd, const char* fmt, ...) __attribute__((__format__(__printf__, 2, 3)));
 
 #endif /* ADB_IO_H */