Remove uses of logging.warn.

logging.warn is deprecated and we should always use logging.warning
(http://bugs.python.org/issue13235).

BUG=None
TEST=Unittests.

Change-Id: I8ca32a6f0d2d96baecb4a1e3f70d2273d1894a06
Reviewed-on: https://chromium-review.googlesource.com/272445
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Trybot-Ready: Bertrand Simonnet <bsimonnet@chromium.org>
Tested-by: Bertrand Simonnet <bsimonnet@chromium.org>
Reviewed-by: Steve Fung <stevefung@chromium.org>
Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
diff --git a/scripts/fwgdb.py b/scripts/fwgdb.py
index 7d56986..aca9ace 100644
--- a/scripts/fwgdb.py
+++ b/scripts/fwgdb.py
@@ -124,8 +124,8 @@
       opts.port = rc[opts.name].get('port', client.DEFAULT_PORT)
     if not opts.board and 'board' in rc[opts.name]:
       opts.board = rc[opts.name]['board']
-      logging.warn('Inferring board %s from %s; make sure this is correct!',
-                   opts.board, opts.servod_rcfile)
+      logging.warning('Inferring board %s from %s; make sure this is correct!',
+                      opts.board, opts.servod_rcfile)
 
   if not opts.servod_server:
     opts.servod_server = client.DEFAULT_HOST
@@ -153,8 +153,8 @@
     path = os.path.join(firmware_dir, basename)
 
   if os.path.exists(path):
-    logging.warn('Auto-detected symbol file at %s... make sure that this '
-                 'matches the image on your DUT!', path)
+    logging.warning('Auto-detected symbol file at %s... make sure that this '
+                    'matches the image on your DUT!', path)
     return path
 
   raise ValueError('Could not find %s symbol file!' % basename)