sbin/hammer: Change assertion on invalid cleanup path to printf
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 5 Dec 2015 17:43:45 +0000 (02:43 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 6 Dec 2015 16:41:50 +0000 (01:41 +0900)
commitaae415390c71c84b78832fba257f97ab1a52a316
treea2d886d46b62568e7d73103da1795587545aab07
parent6c35a9287471ee397de065d8e990340601eb3590
sbin/hammer: Change assertion on invalid cleanup path to printf

This shouldn't be assertion.
Users could just type . for no reason and result in core dump.
It should end like other errors as shown below.

  # hammer cleanup . . . . .
  cleanup .                    - path must start with '/'
  cleanup .                    - PFS #0 already handled
  cleanup .                    - PFS #0 already handled
  cleanup .                    - PFS #0 already handled
  cleanup .                    - PFS #0 already handled
sbin/hammer/cmd_cleanup.c