autotest: Fix naming error

host has hostname property, not name.
Fix cl:482542: logging was not formated properly

BUG=chromium:726464
TEST=No error stack when job aborts.

Change-Id: I0f9b66ec5b508045115ed827cb7f1392af95961c
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/516423
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
Tested-by: Xixuan Wu <xixuan@chromium.org>
Commit-Queue: Xixuan Wu <xixuan@chromium.org>
diff --git a/server/autotest.py b/server/autotest.py
index bd57ca8..a323691 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -294,7 +294,7 @@
         # if that fails try to install using svn
         if utils.run('which svn').exit_status:
             raise error.AutoservError('svn not found on target machine: %s' %
-                                      host.name)
+                                      host.hostname)
         try:
             host.run('svn checkout %s %s' % (AUTOTEST_SVN, autodir))
         except error.AutoservRunError, e:
@@ -940,7 +940,7 @@
                     self.host.wait_up(
                         self.host.HOURS_TO_WAIT_FOR_RECOVERY * 3600)
                     logging.debug('Unexpected final status message from '
-                                  'client %s: %s', (self.host.name, last))
+                                  'client %s: %s', self.host.hostname, last)
                     # The line 'last' may have sensitive phrases, like
                     # 'END GOOD', which breaks the tko parser. So the error
                     # message will exclude it, since it will be recorded to